Developer ToolsModule / REGEX-TESTER

.* Regex Tester & Reference

Cheat Sheet
/
Test Text 0 chars
0
Pattern OK 0 matches
.Any character (except newline unless s flag)
\wWord character [a-zA-Z0-9_]
\WNon-word character
\dDigit [0-9]
\DNon-digit
\sWhitespace [ \t\n\r\f\v]
\SNon-whitespace
\bWord boundary
\BNon-word boundary
^Start of string / line (m flag)
$End of string / line (m flag)
*0 or more
+1 or more
?0 or 1 (optional)
{n,m}Quantifier: n to m times
(x)Capturing group
(?:x)Non-capturing group
(?=x)Lookahead
(?!x)Negative lookahead
(?<=x)Lookbehind
(?<!x)Negative lookbehind
[abc]Character class
[^abc]Negated character class
\|Alternation (OR)
\1, \2...Backreference