piko

Regex Tester

Test a JavaScript regular expression and see the matching text and captured groups.

Runs on your device. Nothing you add is uploaded.

How to use Regex Tester

  1. Paste the text to search.
  2. Enter a JavaScript pattern and optional flags.
  3. Inspect the highlights and capture groups.

Questions

Which flags can I enter?
Use JavaScript flags such as g for every match, i to ignore case, m for multiline anchors, or u for Unicode.
How do offsets work?
Offsets start at zero and use JavaScript UTF-16 indices. The thin vertical marker shows a match that consumes no characters.
Where is my input processed?
On your device. The tool does not upload the input or its result.

How this works

Runs JavaScript matching in a time-limited worker and escapes matched text before highlighting it.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy

Related tools

More in Developer