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

Re^2: regex for removing quoted text

by jwkrahn (Monsignor)
on Mar 10, 2011 at 05:12 UTC ( #892348=note: print w/ replies, xml ) Need Help??


in reply to Re: regex for removing quoted text
in thread regex for removing quoted text

You want to look at the /s switch on the s/// operator.

$str =~ s/"[^"]+"//gs;

The  /s option has no effect in the expression /"[^"]+"/, it is superfluous.


Comment on Re^2: regex for removing quoted text
Select or Download Code
Re^3: regex for removing quoted text
by Anonymous Monk on Mar 10, 2011 at 05:21 UTC
    Technically, but it still signals the authors intentions

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-12-28 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls