๐Ÿงฐ
Consultant Survival

Swiss army knives for people who paste payloads all day

Online regex tester

Write the regular expression and watch the matches appear as you type, instead of running the unit test for the twelfth time.

0
0

๐Ÿ”’ 100% local processing: no data leaves the browser and your input is never stored.

Ctrl + Enter runs the main action

What you can do

  • JavaScript syntax with the g, i, m, s and u flags.
  • Match highlighting updated as you type.
  • A table of capture groups, named groups included.
  • Replacement preview with $1, $2 and $<name>.
  • Runs in a Web Worker with a timeout: a pattern with catastrophic backtracking won't freeze the page.

Frequently asked questions

Which regex syntax is used?

JavaScript (ECMAScript), the same as Node.js and browsers. It's very close to Java, Python and PCRE, but some advanced features may differ.

What happens with a regex that never ends?

The test runs in a separate Web Worker with a timeout: if the pattern takes too long, execution is stopped and the page stays responsive.

Can I try a replacement?

Yes. Write the replacement text using $1, $2 or $<name> for groups and see the result immediately.

More developer tools

โ† All tools