Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Another regex to solve ...

by AR (Friar)
on Aug 18, 2011 at 16:46 UTC ( [id://921011]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Another regex to solve ...
in thread Another regex to solve ...

/((\b|[^aeiou])[aeiou]|[eiou]a|[aiou]e|[aeou]i|[aeiu]o|[aeio]u)p\b/

but it's not even remotely elegant. I'll keep working on it.

Replies are listed 'Best First'.
Re^4: Another regex to solve ...
by pat_mc (Pilgrim) on Aug 18, 2011 at 16:50 UTC
    Hm ... yes, of course ... the explicit disjunction would work. I guess we both agree on the elegance of this solution (or lack thereof) ;-)

    Thanks for posting it, nonetheless!

      Two regexes work:

      $w =~ /([aeiou])p\b/ && $w !~ /${1}${1}p\b/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://921011]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found