🔍 RegexLab

Pattern

/ /

Test String

Highlighted Matches

Match Details

Replace

Quick Reference

.Any character
\dDigit [0-9]
\wWord [a-zA-Z0-9_]
\sWhitespace
\bWord boundary
^Start of string/line
$End of string/line
[abc]Character class
[^abc]Negated class
(abc)Capture group
*0 or more
+1 or more
?0 or 1
{n}Exactly n
{n,m}Between n and m
*?Lazy (non-greedy)
a|bAlternation
(?:)Non-capturing
(?=)Lookahead
(?!)Neg lookahead