← Back to Home

🔣 Regex Tester

/ /

Highlighted matches

Match details

Replace


    

Quick reference

. any char
\d digit · \D non-digit
\w word char · \W non-word
\s whitespace · \S non-space
[abc] char set · [^abc] negated
^ start · $ end · \b word boundary
* 0+ · + 1+ · ? 0 or 1
{n} exactly n · {n,m} n to m
*? lazy quantifier
(x) group · (?:x) non-capturing
(?<name>x) named group
a|b alternation
(?=x) lookahead · (?!x) negative
(?<=x) lookbehind · (?<!x) negative