Regex Tester

Test JavaScript regular expressions, inspect captures and try replacements in a time-limited browser worker.

Processed in your browser; no file upload.

Flags

Regex Tester

Enter a pattern and sample text, select flags and optionally enter a replacement. The result lists match offsets, capture groups and the substituted text.

Limits and privacy

Pattern length is 500 characters, input 20,000 and output 50,000. Up to 200 matches are shown. Processing stops after 250 ms; complex patterns can time out. No data is uploaded.

Why did a pattern time out?

Some expressions explore many possible paths on particular text. Simplify nested repetitions or narrow the input and try again.

More browser tools