TOOLS
Regex Tester & Debugger
← Back
Presets:
Choose pattern...
Email Address
Web URL
IPv4 Address
Hex Color
ISO Date (YYYY-MM-DD)
HTML Tag with Groups
Phone Number
Username / Slug
History:
Recent patterns...
100% In-Browser Evaluation. Zero Data Transmission.
Regular Expression
Copy /pattern/flags
/
/
g
Flags:
g
(global)
i
(case-insensitive)
m
(multiline)
s
(dotAll)
u
(unicode)
y
(sticky)
⚠️
Syntax Error
Test String
Sample
Clear
Contact team@sayandeep.dev or support@company.org for technical inquiries. You can also reach out to john.doe+promo@gmail.com or admin@internal.network.
Matches
0
Replace
Explain
Cheat Sheet
Replacement Pattern:
Copy Result
Supports
$1
,
$2
(numbered groups),
$&
(full match), and
$<name>
(named groups).
Transformed Output:
Character Classes
\d
Digit [0-9]
\D
Not digit
\w
Word char [a-zA-Z0-9_]
\W
Non-word char
\s
Whitespace
.
Any character
[abc]
Any in set
[^abc]
Not in set
Quantifiers
+
1 or more
*
0 or more
?
0 or 1 (optional)
{3}
Exactly 3
{2,5}
Between 2 and 5
+?
Lazy (non-greedy)
Anchors & Boundaries
^
Start of string/line
$
End of string/line
\b
Word boundary
\B
Non-word boundary
Groups & Lookaround
(abc)
Capture group
(?:abc)
Non-capturing
(?<name>abc)
Named group
(?=abc)
Positive lookahead
(?!abc)
Negative lookahead
(?<=abc)
Positive lookbehind
✓
Copied to clipboard!