Boundary Characters
Boundary matchers identify specific positions within the input text.
| Matcher | Description |
|---|---|
| ^ | Matches at the beginning of a line |
| $ | Matches at the end of a line |
| \b | Matches a word boundary (beginning or end of word) |
| \B | Matches anything that is NOT a word boundary |
| \A | Matches the beginning of the input |
| \Z | Matches the end of the input |