| v $test =~ s{\[\[(.+?)[^\]\]]}{ print "FOO: $1\n"; }ge;
I'm really not sure why you are replacing the tags with the result of print, though. Unless the print is just a placeholder until you get this working, the code should be
while ($test =~ s{\[\[(.+?)[^\]\]]}g) { print "FOO: $1\n"; }
In reply to Re: Regex question - negatives
by ikegami
in thread Regex question - negatives
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |