Free Utilities
Regex Cheat Sheet
Character Classes
.Any character except newline\dDigit [0-9]\DNon-digit\wWord character [a-zA-Z0-9_]\WNon-word character\sWhitespace\SNon-whitespaceQuantifiers
*Zero or more+One or more?Zero or one{n}Exactly n times{n,}n or more times{n,m}Between n and m timesAnchors
^Start of string/line$End of string/line\bWord boundaryGroups & Lookaround
(abc)Capture group(?:abc)Non-capturing group(?<name>abc)Named groupa|bAlternation (a or b)(?=abc)Positive lookahead(?!abc)Negative lookaheadCharacter Sets
[abc]Match a, b, or c[^abc]Not a, b, or c[a-z]Range: a to zFlags
gGlobal (all matches)iCase-insensitivemMultilinesDotall (dot matches newline)