Regex Tester
Write a JavaScript regular expression and test string to see match counts, highlighted matches and capture groups in real time. Invalid patterns are reported clearly, and matches are rendered safely with escaped text.
Examples
Pattern matches digits on 'a1 b22 c333'
3 matches: 1, 22, 333
How it works
Patterns run on your browser’s JavaScript regular-expression engine, so the syntax is JavaScript’s. A pattern written for PCRE or Python may need small changes, for example to possessive quantifiers or inline flags.
| Flag | Effect |
|---|---|
| g | Find every match. Without it, only the first match is shown. |
| i | Ignore upper and lower case. |
| m | ^ and $ match at each line break, not only at the ends of the text. |
| s | The dot also matches line breaks. |
| u | Treat the pattern and text as full Unicode. |
| y | Match only at the current position (sticky). |
Capture groups are listed for the first five matches that have any, with the group name where one is defined. Matching stops after 100,000 matches so a runaway pattern cannot freeze the page.
How to use Regex Tester
Why use this tool
Frequently asked questions
It uses the browser's native JavaScript RegExp engine, so syntax and flags match what runs in JS.
Yes. Capture groups for the first few matches are listed, including named groups when present.
Found a bug or have an idea?
ToolOrbit is actively developed — feedback directly shapes what gets built next.
Send feedback