in reply to Extracting Strings - Special Cases

try

$str="hi\"perl\"monks"; $str =~ /.*\"(.*?)\".*/; print "$1\n";