How to test a regular expression
- Enter the pattern without the surrounding slash characters.
- Add JavaScript flags such as
gfor all matches orifor case-insensitive matching. - Paste test text and select Test pattern to view the results.
What does this regex tester support?
This tool uses the JavaScript regular-expression engine built into your browser. It reports every match, including its position, and clearly displays invalid patterns or flags.
Keep test data private
Patterns and text are evaluated locally in your browser. They are not uploaded or saved by this tool.