in reply to Repeatable regex.
The /g switch in scalar context causes the regex to remember its last match position. Also note that escaping the quote is unnecessary. See perlre and perlop for more details.while ($myString =~ /"(.+?)"/g) { print $1, "\n"; }
|
|---|