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'.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://921315]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-06-26 12:44 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (580 votes). Check out past polls.