Regex memo
Character classes
- \d
- Digit
- \w
- Word character
- \s
- Whitespace
- [^abc]
- Not a, b, or c
Quantifiers
- *
- Zero or more
- +
- One or more
- ?
- Optional
- {2,5}
- Between two and five
Groups and anchors
- (...)
- Capture group
- (?:...)
- Non-capturing group
- ^ / $
- Start and end
- \b
- Word boundary