Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Another regex to solve ...

by pat_mc (Pilgrim)
on Aug 18, 2011 at 16:50 UTC ( #921013=note: print w/ replies, xml ) Need Help??


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

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!


Comment on Re^4: Another regex to solve ...
Re^5: Another regex to solve ...
by AR (Friar) on Aug 18, 2011 at 16:58 UTC

    Two regexes work:

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2015-07-03 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls