Regex Tester & Debugger
Test and debug regular expressions with live highlighting and match details.
Tool Area
Instant client-side processing
Regex Pattern
Enter your pattern to match against
Target Text
Enter text to test your pattern
Live Match Details
Enter a pattern and test text to see highlights
Pattern Library
Common Questions
QWhy is my regex matching too much?
Regex is 'greedy' by default. Using `.*` will match as much as possible. Add a `?` (e.g., `.*?`) to make it 'lazy' and stop at the first opportunity.
QWhat is a capture group?
Parentheses `(...)` group parts of your pattern. The engine 'captures' these matches so you can extract them or reference them later using `$1`, `$2`, etc.
QDifference between `*` and `+`?
`*` matches 0 or more times (optional). `+` matches 1 or more times (mandatory).
QHow do I match a literal dot `.`?
The dot is a special wildcard. To match a real dot, escape it with a backslash: `\.`. Same applies to `?`, `*`, `+`, `(`, `)`.
QIs this PCRE compatible?
Yes, our Javascript engine supports most PCRE features used in PHP and Python, except for some advanced lookbehind assertions.