Web & Dev
Regex Tester
Test a regular expression against sample text with live match highlighting.
Web & Dev
Test a regular expression live
This regex tester runs a JavaScript regular expression against sample text and highlights every match as you edit the pattern. Add flags such as g for global, i for case-insensitive and m for multiline. An invalid pattern shows a clear error, so you can build a complex expression a piece at a time.
How to test a regex
Enter your pattern and flags, paste text to test against, and matches are highlighted and counted as you type.
Frequently asked questions
Which regex flavour is this?
JavaScript's regular expression engine, which is close to but not identical to PCRE. Most common patterns behave the same way.