Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-07-10 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (207 votes), past polls