Regex Tester
Live-test regular expressions against your text.
The quick brown fox jumps over the lazy dog.
9 matches
- 1.The
- 2.quick
- 3.brown
- 4.fox
- 5.jumps
- 6.over
- 7.the
- 8.lazy
- 9.dog
About
Paste a regex and a test string. Matches highlight live. Capture groups are listed. Common flags (g, i, m, s, u) are toggleable. The cheatsheet shows the most-used patterns.
How to use
- Type a regex pattern.
- Toggle flags (g, i, m, s).
- Paste test text. Matches highlight, and groups list below.
FAQ
Which regex flavor?+
JavaScript regex (the same one your browser uses). Mostly compatible with Perl-style regex but lacks lookbehind in older Safari and some advanced features like atomic groups.