Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 having an uproarious good time at the Monastery: (5)
As of 2017-11-19 01:15 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (278 votes). Check out past polls.