Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: Regex problem - (non)greedy?

by ikegami (Pope)
on Nov 14, 2013 at 14:44 UTC ( #1062600=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Regex problem - (non)greedy?
in thread Regex problem - (non)greedy?

He clearly doesn't want the middle "cd" as that's his question.


Comment on Re^6: Regex problem - (non)greedy?
Re^7: Regex problem - (non)greedy?
by hdb (Prior) on Nov 14, 2013 at 14:47 UTC

    But he says the 'EF' would be a random text, so it could be 'cd' as well?

    And what about 'cd accd ghi'?

      But he says the 'EF' would be a random text, so it could be 'cd' as well?

      That makes no sense. cd is part of his pattern.

      And what about 'cd accd ghi'?

      Not sure, though it's just a question of using or not using \b.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2015-07-05 23:22 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 (68 votes), past polls