Regex Tools
Build, test, and debug regular expressions.
/
/
{{regexError}}
Test String
Matches
No matches found.
Match {{$index + 1}}
{{match[0]}}
Group {{$index + 1}}: {{group}}
Index: {{match.index}}
Components
Built Expression
Click components on the left to append them to your expression.
Character Classes
.Any character\dDigit (0-9)\wWord char (a-z, A-Z, 0-9, _)\sWhitespace
Anchors
^Start of string/line$End of string/line\bWord boundary
Quantifiers
*0 or more+1 or more?0 or 1{3}Exactly 3{3,}3 or more
Groups & Lookaround
(abc)Capture group(?:abc)Non-capturing[abc]One of a, b, c[^abc]None of a, b, c