Free tools. Always useful.
← All tools
DATA & ENCODING

Regular expression tester

Enter a JavaScript regular expression without surrounding slashes, choose flags and supply text. Inspect matches, capture groups and replacement output. Expressions run in a cancellable browser worker with a one-second limit. Patterns are limited to 4 KiB and results to 1,000 matches.

Runs in your browser
>_Ready when you aresysadmin.au / regex-tester
Without surrounding slashes · up to 4 KiB
d g i m s u v y
Up to 1 MiB · match positions use JavaScript UTF-16 indices
Supports $&, $1 and $<name> substitutions.
1-second limit · 1,000 matches maximum
Test the expression before putting it to work.

A useful starting point

Example input: (?<name>web)-(?<id>\d+) with flag g

Private by default

Your inputs and results stay in this tab. Optional Ask Gavin shares only what you review and send. Chat limits and privacy →