Next | Regular Expression Mastery | 40 |
Ending anchor $
/ab$/
Attempt to match $ fails unless cursor is after the last character of the string
absinthe
Match fails.
This simple case is of course optimized
In general, it really does do it this way
Next | Copyright © 2002 M. J. Dominus |