in reply to code within a regular expression
Of course, this is a vast simplification. If you're interested in truely understanding regular expressions, I suggest you pick up a copy of "Mastering Regular Expressions" from O'Reilly Press. The Camel Book, for all its value, is not nearly enough to allow you to fully grok the regular expression in all its glory.
-sam
Side note: I wonder if the code above will always set $i to 10. Couldn't some future regex optimization intuit the limit on the .* section and end up setting $i to 4?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: heh, told ya i'm a pathetic newbie.
by stratkid (Initiate) on May 02, 2002 at 04:50 UTC |