🔒 Runs in your browser — no data is ever transmitted to a server
Regular Expression Pattern
Flags
Quick Patterns
Test Text & Match Results
Highlighted Matches
Matches: 0
Unique: 0
Groups: 0
Find & Replace
Result
Character Classes
.any char (not newline)
\wword char [a-zA-Z0-9_]
\ddigit [0-9]
\swhitespace
\W \D \Snegations of above
[abc]any of a, b, or c
[^abc]not a, b, or c
[a-z]char in range a–z
Anchors
^start of string / line
$end of string / line
\bword boundary
\Bnon-word boundary
Quantifiers
*0 or more (greedy)
+1 or more (greedy)
?0 or 1 (optional)
{n}exactly n times
{n,m}between n and m
*? +? ??lazy (non-greedy)
Groups & Lookaround
(...)capture group
(?:...)non-capturing group
(?<n>...)named capture group
\1 \2backreference to group
(?=...)positive lookahead
(?!...)negative lookahead
(?<=...)positive lookbehind
(?<!...)negative lookbehind
Flags (JS)
gfind all matches
icase insensitive
mmultiline ^ and $
s. matches newlines
ufull unicode mode
ysticky matching
Escape Sequences
\n \t \rnewline, tab, return
\. \+ \*literal special chars
a|balternation (a or b)

All processing happens locally in your browser — your data is never transmitted to a server.