Regex Tester
Test regular expressions with instant pattern matches.
Loading workspace...
About the Regex Tester
Use it to build and debug regular expressions against sample text, with live match highlighting and capture-group details.
Runs entirely in your browser. Your files and text are never uploaded.
How to use it
- Enter the pattern and flags.
- Paste the test text.
- Adjust the pattern until the right parts are highlighted.
Frequently asked questions
Which regex flavour is used?
JavaScript (ECMAScript) regular expressions, the same engine your browser and Node.js use.
What do the g, i and m flags do?
g finds all matches instead of the first, i ignores case, and m makes ^ and $ match at each line.
Why does my regex freeze the page?
Nested quantifiers like (a+)+ can cause catastrophic backtracking. Make the pattern more specific.
Related Tools
Specialized workflows in Utilities & Developer