Regex tester
Test JavaScript regular expressions with match highlights, positions and capture groups.
Runs in your browser. Files are not uploaded.
Choose settings or try an example.
Preview
JSON match report
How to use
Enter a pattern without /.../ delimiters, choose flags and add test text. Results use JavaScript RegExp rules. Positions are zero-based UTF-16 offsets; an empty match is marked ∅. Copy or download the JSON report.
Limits and details
Runs in a disposable worker with a 3-second timeout. At most 200 matches and the first 20 numbered/named capture groups per match are shown. Reaching the cap does not prove there are more matches. This is JavaScript syntax, not PCRE; no replacement, code execution or regex correctness guarantee.