Regex Tester
Test a regular expression against sample text and inspect the matches and groups.
How to use
- 1Enter the pattern (without slashes) and toggle the flags you need.
- 2Paste the test text; matches are highlighted and listed with their indices.
- 3Invalid patterns show a clear error instead of failing silently.
Examples
- \d+ matches numbers
- In “a1b22” it finds 1 and 22.