Update: also you can rewrite your loop as follows:
note, that this doesn't use counter and just prints all occurrences.while ( $content =~ /\[{(.*?)}\]/g ) { print "$1\n"; }
In reply to Re: Non Greedy?
by zwon
in thread Non Greedy?
by feetslashbirds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |