No such thing as a small change | |
PerlMonks |
Re^3: question about the star(*) quantifierby chargrill (Parson) |
on Dec 21, 2006 at 17:52 UTC ( [id://591147]=note: print w/replies, xml ) | Need Help?? |
It's already been said above, but I'll restate it: \d* means explicitly: "Match 0 or more digits" That matches any sequence of characters that is "0 or more digits". At the very beginning of your string (leftmost portion), a string matches that - an empty string '' right before "I fear that...". Update: I guess samtregar beat me to it, but our message is the same :) --chargrill
In Section
Seekers of Perl Wisdom
|
|