note
TedPride
The object is to get the shortest possible string that starts with " and ends with either " or the end of the sample. So:
<code>
while (<DATA>) {
chomp;
print "$1\n" while m/(".*?(?:"|$))/g;
}
__DATA__
abc
"def
"ghi"
jkl"
mno"pqr"stu
v"wx"y"z"
</code>
565797
565797