in reply to Non Greedy?
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non Greedy?
by feetslashbirds (Initiate) on Jun 02, 2009 at 22:16 UTC |