Developer Tool

Regex Tester & Debugger

Test and debug regular expressions in real-time. See matches highlighted, capture groups extracted, and get detailed explanations of your patterns.

What are Regular Expressions?

Regular expressions (regex) are patterns used to match character combinations in strings. They're powerful tools for:

Searching - Find patterns
Validating - Check format
Replacing - Transform text
Extracting - Pull data out
/ / gi
Quick Reference
. Any character
\d Digit [0-9]
\w Word char [a-zA-Z0-9_]
\s Whitespace
^ Start of string
$ End of string
* 0 or more
+ 1 or more
? 0 or 1
{n,m} n to m times
[abc] Character class
(group) Capture group
a|b Alternation
Common Patterns
Email
URL
IPv4
Phone
Hex Color