Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

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


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

I expect he'd want "" for the first and "" for the second. As for the third, see my update.


Comment on Re^4: Regex problem - (non)greedy?
Re^5: Regex problem - (non)greedy?
by hdb (Prior) on Nov 14, 2013 at 14:40 UTC

    The first one does not match as the OP contains two spaces at least between 'cd' and 'ghi'.

    Also what would he expect for 'cd cd ghi'?

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

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

        And what about 'cd accd ghi'?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-04 07:37 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 (58 votes), past polls