Test String
Result
Character Classes
- .
- Any character
- \d
- Digit [0-9]
- \w
- Word [a-zA-Z0-9_]
- \s
- Whitespace
- \b
- Word boundary
Quantifiers
- *
- 0 or more
- +
- 1 or more
- ?
- 0 or 1
- {n}
- Exactly n
- {n,m}
- n to m
Groups & Refs
- (abc)
- Capture group
- (?:abc)
- Non-capturing
- (?<n>abc)
- Named group
- \1
- Backreference
- a|b
- Alternation
Anchors
- ^
- Start of string
- $
- End of string
- (?=x)
- Lookahead
- (?!x)
- Neg lookahead
- (?<=x)
- Lookbehind