Regex Tester
Test a JavaScript regular expression against text in a disposable browser worker. See match positions, capture groups, and highlighted text.
How to use it
- Enter a pattern, supported flags, and test text.
- Inspect highlighted matches, positions, and captured groups.
- Copy matches or try an example pattern.
Example & limitations
For example, use (?<year>\d{4})-(?<month>\d{2}) on 2026-10 to inspect named groups.
300 pattern characters, 20,000 text characters, 300 matches, and a 500 ms worker timeout. A complex expression may still use CPU until it is terminated. Zero-length matches are listed, not highlighted.