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.

Replies are listed 'Best First'.
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