Pattern Syntax
This chapter contains focuses on the pattern syntax for regular expressions. It starts with an overview and details for each pattern element.
- Syntax Overview
- Quoting
- Special Characters
- Character Types
- Any Character: .
- Digit: \d
- Non-Digit: \D
- Whitespace: \s
- Non-Whitespace: \S
- Word Character: \w
- Non-Word Character: \W
- Unicode General Category: \p{category}
- Negated Unicode General Category: \P{category}
- Supported Unicode Categories
- Legacy and Compatibility Expressions
- Differences from Common Regex Engines
- Character Classes
- Quantifiers
- Anchors
- Alternatives
- Groups
- Modes and Flags
- Unsupported Expressions