Free Regex Tester
Test a regular expression against sample text with live match highlighting.
//gi
Contact us at hello@example.com or support@anytoolcenter.com for help.
How to use this tool
Enter a pattern, toggle the flags you need, and paste text to test against it. Matches highlight instantly in the text below.
If your pattern has capture groups, each match's group values are listed separately for easy inspection.
FAQ
- Which regex flavor does this use?
- JavaScript's native regular expression engine (the same one used by RegExp in Node.js and browsers), including support for g, i, m, and s flags.
- Why does my pattern only match once?
- Enable the Global (g) flag to find every match in the test string. Without it, only the first match is shown, matching real regex behavior.
- Can I see capture groups?
- Yes. If your pattern includes capture groups in parentheses, their values appear below the highlighted matches for each match found.