How to use Regex Tester
Test a JavaScript regular expression in a time-limited worker. JavaScript regex syntax is used. Browser execution is isolated in a worker and stopped after two seconds. Inputs are limited to 20,000 characters and patterns to 2,000; at most 1,000 matches are shown.
- Set Input.
- Set Regular expression.
- Set Flags.
- Run the tool, review the result and its stated limitations, then copy or download if needed.
Example & practical use
Test a JavaScript regular expression in a time-limited worker. The example below demonstrates Input; Regular expression; Flags.
Example input:
{
"text": "abc 12 def",
"pattern": "\\d+",
"flags": "g"
}
Expected result (relevant fields):
[
{
"match": "12",
"index": 4,
"groups": []
}
]Features & result limitations
JavaScript regex syntax is used. Browser execution is isolated in a worker and stopped after two seconds. Inputs are limited to 20,000 characters and patterns to 2,000; at most 1,000 matches are shown.
Frequently asked questions
What inputs does Regex Tester accept?
Input; Regular expression; Flags
How should I interpret the Regex Tester result?
JavaScript regex syntax is used. Browser execution is isolated in a worker and stopped after two seconds. Inputs are limited to 20,000 characters and patterns to 2,000; at most 1,000 matches are shown.
Where does Regex Tester process my data?
Inputs are processed locally in your browser. Submitted text is not sent to external services. A successful-run event increments an aggregate tool counter without your input.