Regex tester
Test a regular expression against sample text and see every match and group.
Matches
Enter a pattern and some text to see matches.
How to use Regex tester
- Enter a pattern and choose its flags.
- Paste the text you want to test.
- Review the highlighted matches and their groups.
Questions and answers
Which regex flavour is this?
JavaScript. Patterns run on the regular expression engine in your browser, so results match what your JavaScript code will do.
What do the flags mean?
g finds every match, i ignores case, m lets ^ and $ match at line breaks, s lets a dot match line breaks, and u turns on full Unicode matching.
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
Related tools
Diff checker
Compare two pieces of text and see which lines were added or removed.YAML to JSON converter
Convert YAML to JSON or JSON to YAML, with clear error messages.Format JSON
Pretty-print, minify and validate JSON, with optional key sorting.Base64 encode and decode
Convert text to Base64 and back, with full Unicode support.