Next | Regular Expression Mastery | 39 |
/^ab/
Attempt to match ^ fails unless cursor is before the first character of the string
But also, the start node is altered so that the engine can only start at the beginning of the string
grab
Match fails.
More about optimizations later
Next | Copyright © 2002 M. J. Dominus |