in reply to Re: Regex question - negatives
in thread Regex question - negatives

The pattern is wrong, and you don't want s///.
while ($test =~ m{\[\[(.+?)\]\]}g) { print "FOO: $1\n"; }

Replies are listed 'Best First'.
Re^3: Regex question - negatives
by ikegami (Patriarch) on Jan 13, 2011 at 18:17 UTC
    ack, that's what I thought I was posting. Thanks.