in reply to Matching escaped quoted strings

use Regexp::Common; s/$RE{delimited}{-delim => '"'}{-esc => '"'}{-keep}/<$1>/g;

Abigail

Replies are listed 'Best First'.
Re: Re: Matching escaped quoted strings
by ysth (Canon) on Feb 19, 2004 at 18:31 UTC
    Regexp::Common is delightful; that produces the quite nice: (?-xism:((\")([^\"]*(?:(?:\"\")[^\"]*)*)(\")))