Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Greedy regexp matching: differences between man page and implementation?

by davido (Cardinal)
on Jul 08, 2004 at 16:02 UTC ( [id://372844]=note: print w/replies, xml ) Need Help??


in reply to Greedy regexp matching: differences between man page and implementation?

You might try it like this:
/(ab?)*(b?c)/
The output becomes: ab c.

Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found