Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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 browsing the Monastery: (5)
As of 2015-11-29 23:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls