in reply to Non Greedy?

$content =~ /\[{(.*?)}\](.+)/

Update: also you can rewrite your loop as follows:

while ( $content =~ /\[{(.*?)}\]/g ) { print "$1\n"; }
note, that this doesn't use counter and just prints all occurrences.

Replies are listed 'Best First'.
Re^2: Non Greedy?
by feetslashbirds (Initiate) on Jun 02, 2009 at 22:16 UTC
    gracias, I feel like a dummy