/
/
Quick Reference
| . | Any character except newline |
| \d | Digit (0-9) |
| \w | Word character (a-z, A-Z, 0-9, _) |
| \s | Whitespace |
| \b | Word boundary |
| [abc] | Character class: a, b, or c |
| [^abc] | Not a, b, or c |
| a|b | a or b |
| (...) | Capture group |
| (?:...) | Non-capture group |
| a* | 0 or more |
| a+ | 1 or more |
| a? | 0 or 1 |
| a{3} | Exactly 3 |
| a{3,} | 3 or more |
| a{3,6} | Between 3 and 6 |
| ^ | Start of string/line |
| $ | End of string/line |
| (?=...) | Positive lookahead |
| (?!...) | Negative lookahead |