At 22:33 -0700 7/9/01, Bruce Van Allen wrote:
>Wait -- doesn't the $ 'anchor' the regex to the end of the string? If
>so, that's where the matching attempts *start*, yes?

Not according to Jeffrey E.F. Friedl's excellent discussion in "Mastering
Regular Expressions."

It does work at the other end:  ^blah prevents looking for blah anywhere
except at the beginning.  But the $, while it requires reaching the end in
order to match doesn't change the starting point or the backtracking
scheme.  [Speaking now of the type of regular expression engine in Perl.]

  --John

-- 
John Baxter   [EMAIL PROTECTED]      Port Ludlow, WA, USA

Reply via email to