http://qs321.pair.com?node_id=121207


in reply to Re:{4} Getting impossible things right (behaviour of keys)
in thread Getting impossible things right (behaviour of keys)

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