Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: This looks like someone sneezed and hit the keyboardby Theo (Priest) |
on Feb 03, 2004 at 15:41 UTC ( [id://326214]=note: print w/replies, xml ) | Need Help?? |
Okay, I guess this is a newbie question ... It looks to me like the /.* opening to the regex is greedy and would grab everything that was applied to it leaving nothing for the rest of the regex to match to. In otherwords, anything/everything would give a match. Other, wiser monks have not mentioned this, so I'm assuming I've missed something. Why isn't my assumption true? Update: Thanks to bunnyman, ysth and MCS for their gentle instruction. -Theo-
In Section
Seekers of Perl Wisdom
|
|