- or download this
my $string = qw!"This is \"data\""!;
- or download this
$string =~ /"((?:\\"|[^"])*)"/;
- or download this
$string =~ /" # first quote
( # capture to $1
...
)* # end grouping (zero or more of above)
) # end capture
"/x; # last quote
- or download this
$string =~ /"((?:\\["\\]|[^"])*)"/;