Just another Perl shrine | |
PerlMonks |
Re: Re: Re: This looks like someone sneezed and hit the keyboardby ysth (Canon) |
on Feb 03, 2004 at 16:59 UTC ( [id://326250]=note: print w/replies, xml ) | Need Help?? |
Because for the match to succeed, one of the three (optA|optB|optC) options has to match. With the .* at the front, it will basically start at the end of the string and work backwards until it finds one of the alternates.
The \s? at the end is useless though (unless $& is used).
In Section
Seekers of Perl Wisdom
|
|