Developer — Free

Test a regular expression

Live highlighting, groups, flags and replace preview.

  1. 01Drop
  2. 02Adjust
  3. 03Download
Ready. Free
01 — Steps

How to test a regular expression

  1. Enter a pattern

    With flags such as g, i, m, s, u.

  2. Paste test text

    Matches highlight as you type; groups are listed.

  3. Try a replacement

    See the substituted output with $1-style references.

02 — Questions

Frequently asked questions

Which regex flavour is this?
JavaScript (ECMAScript), which covers most syntax shared with PCRE, Python and Go.
Can I share a regex?
Yes. The pattern, flags and text are encoded in the link, so it reproduces your test.
Are capture groups shown?
Yes. Groups are listed for every match.
03 — Related
04 — More

More developer tools

All developer tools