Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
say unless m{(?<=([aeiou]))\1p\z};
That allows eg 'help' or slurp'. Update: I've no idea why though, or why it also allows 'hops' and 'hoops'... Update 2: Got it! It also of course allows 'rabbit', or any other string that doesn't end in 'p' preceded by whatever. It was the unless that momentarily confused me. :) In reply to Re^2: Another regex to solve ...
by Not_a_Number
|
|