The pattern of character-string$ matches with a similar character-string found at the end of the searched string. The following examples illustrate the matching of a pattern located at the end of the searched string.
Pattern |
Searched String |
Result |
---|---|---|
SALES$ |
BSALES |
Match |
SALES$ |
SALESFIL |
No match |
SALESR |
JSALESFL |
No match |
Sales$ |
PRSALES |
No match |