Test and debug regular expressions with real-time matching
No matches found
^Start of string / line$End of string / line\bWord boundary\BNon-word boundary.Any character (except newline)\dDigit [0-9]\DNon-digit\wWord char [a-zA-Z0-9_]\WNon-word character\sWhitespace\SNon-whitespace*0 or more (greedy)+1 or more (greedy)?0 or 1 (optional){n}Exactly n times{n,}n or more times{n,m}Between n and m times*?0 or more (lazy)+?1 or more (lazy)(abc)Capture group(?:abc)Non-capture group(?=abc)Positive lookahead(?!abc)Negative lookahead(?<=abc)Positive lookbehind(?<!abc)Negative lookbehind\1Back-reference to group 1[abc]Any of a, b, or c[^abc]Not a, b, or c[a-z]Character range a to za|ba or b (alternation)gGlobal – all matchesiCase-insensitivemMultiline (^ and $ per line)sDot also matches newlineWe use cookies
We use Google Analytics to understand how visitors use this site. No personal data is sold or shared with third parties. Privacy Policy