Online regex tester
Regular expressions are powerful but easy to get wrong and hard to debug. This regex tester lets you build as you go: enter a pattern and test text, and every match is highlighted in real time with capture groups listed. It turns trial-and-error into something you can see.
How to use
- Type your pattern in the pattern field (without the / delimiters).
- Tick the flags you need (g, i, m…).
- Paste content into the test-text area; matches highlight live and groups are listed below.
Common use cases
- Validate formats like email, phone or URL patterns.
- Debug a regex that matches too little or too much.
- Learn and experiment with regex syntax.