in reply to How will my regular expression match?
I think this a great short explanation of regex engine expectations. The only part I might tweak is the part that addresses the mostly greedy nature of the Perl engine.
Your explanation is right on with regards to the way the engine behaves. You may, however, want to change the term iterations to something else. Iterations usually refers to the repetition of a series of operations. So, while the process of attempting to match against each character could be called an iteration of the regex engine, the characters could really not.
I'm not trying to be overly critical or anything. This tutorial would be great for new (Perl|regex) users to read and i guess I just think the use of iterations might be a bit confusing to them.
dsb
This is my cool %SIG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How will my regular expression match?
by hv (Prior) on Jul 06, 2004 at 13:00 UTC | |
by Roy Johnson (Monsignor) on Jul 06, 2004 at 16:21 UTC | |
by husker (Chaplain) on Nov 09, 2004 at 22:31 UTC |