Test a regular expression
Live highlighting, groups, flags and replace preview.
- 01Drop
- 02Adjust
- 03Download
Ready. Free
01 — Steps
How to test a regular expression
- Enter a pattern
With flags such as g, i, m, s, u.
- Paste test text
Matches highlight as you type; groups are listed.
- 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
Related tools
04 — More
All developer tools