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

Hi,

Aaah ok - so I was calling it AFTER, which basically meant that it wasn't matching the string at the point I was expecting :) Thanks for that!

This works fine now:
$test =~ s{\[\[([^\]]+)\]}{ print "FOO: $1 \n"; }ge;
Thanks again!

Andy