Regex Tester
Test regex patterns against real text with live highlighting of all matches. Supports flags (g, i, m, s), shows match groups, and provides plain-English explanations of your pattern.
Highlighted matches
The quick brown fox jumps over the lazy dogs. Regex is a powerful tool for text pattern matching.
Match details
Regex cheat sheet ▸
Frequently Asked Questions
What regex flags are supported?
g (global — find all matches), i (case insensitive), m (multiline — ^ and $ match line starts/ends), and s (dotall — makes . match newlines). JavaScript's RegExp supports these natively.
How do I match a literal dot or plus sign?
Escape special characters with a backslash: \. matches a literal dot, \+ matches a literal plus. Special characters that need escaping: . * + ? ^ $ { } [ ] | ( ) \
What are capture groups?
Parentheses create capture groups: (\d+) captures digits. Groups appear in match details and can be back-referenced. Use (?:...) for non-capturing groups when you don't need to reference the match.