Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Another regex to solve ...

by pat_mc (Pilgrim)
on Aug 19, 2011 at 19:35 UTC ( #921315=note: print w/ replies, xml ) Need Help??

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

Hi, johngg -

I like the approach of back-referencing the match from the look-behing ... the only issue I have with the code you propose is that it over-generates in the sense that it will also pass strings all other strings that do not match the regex like 'stp' ... and that, of course, it shouldn't since we only want words to pass that have a non-double vowels in front of the word-terminal 'p'.

Comment on Re^2: Another regex to solve ...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2016-02-11 05:30 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (359 votes), past polls