Toolhaus

Regex Tester

Test regular expressions live, see every match and capture group, and preview replacements.

Type a regular expression and some test text to see matches highlighted instantly, with numbered and named capture groups. Switch to the replace tab to preview substitutions with $1 and $<name> backreferences. Simpler than heavyweight regex playgrounds, and everything runs in your browser.

Flags
2 matches
  • hello@example.com@ 14
  • sales@test.org@ 35

Enter a pattern, choose flags, and paste text to test. Use the Replace tab to preview substitutions.

Worked example

  • Pattern \d+ on "a1 b22" → Matches: 1, 22

Frequently asked questions

Which regex flavor is used?

The JavaScript (ECMAScript) RegExp engine built into your browser.

Is my text sent anywhere?

No. Matching happens entirely in your browser.

Privacy

All processing happens locally in your browser. Your data is never uploaded.

Read the practical guide for this category.

Related tools