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"; }
In reply to Re: Repeatable regex.
by MeowChow
in thread Repeatable regex.
by the_0ne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |