Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: regex for removing quoted text

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

Help for this page

Select Code to Download


  1. or download this
    my $str = q{this is "a test} 
        . qq{\n} 
    ...
    print qq{=====}; 
    $str =~ s/"[^"]+"//gs; 
    print $str;
    
  2. or download this
    this is "a test
    this is "only a "poor "test
    =====
    this is only a test
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://892345]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-10-24 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (286 votes). Check out past polls.

    Notices?