Anchors
An anchor does not match a character; instead, it matches what comes before (or after) a character:
Description |
Character |
Example |
Beginning of a string |
|
|
End of a string |
|
|
Word boundary |
|
|
Table 9.3: Commonly used anchors
Anchors are useful where a character, string, or word may appear elsewhere in a string...