|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Re:{4} Getting impossible things right (behaviour of keys)by blakem (Monsignor) |
| on Oct 24, 2001 at 21:39 UTC ( #121207=note: print w/ replies, xml ) | Need Help?? |
|
Add the requirement that it has to be anchored at the end, and you will get the longest match. Try /(ot|foot|refoot)$/ and see which one matches. Bet ya its the longest one. -Blake
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||