🔍 Regular expression visualization
Test regular expressions in real time, highlight matching results and group capture
Regular expression
/
/
Test text
Highlight results
Match details
Enter regular expression to start matching
Regular expression reference
Character class
.
any character
\d
Number [0-9]
\w
word character
\s
whitespace character
[abc]
Character set
[^abc]
Negative character set
quantifier
*
0 or more
+
1 or more
?
0 or 1
{n}
exactly n times
{n,}
n times or more
{n,m}
n to m times
border
^
Start of string
$
end of string
\b
word boundary
\B
non-word boundary
Group
(abc)
Capturing group
(?:abc)
Non-capturing group
(?<name>abc)
named capture
a|b
or
\1
Backreference