Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: I just cannot figure out the greedy regex

by !1 (Hermit)
on Dec 16, 2003 at 07:34 UTC ( #315001=note: print w/replies, xml ) Need Help??


in reply to Re: Re: I just cannot figure out the greedy regex
in thread I just cannot figure out the greedy regex

And just to amend to the post by Roger that you might also want to remove quoted strings with newlines in them, lest you wish to end up with very strange results, with the following regex:

s/"(?:\\"|.)*?"//gs;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-09-27 14:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?