in reply to Regex question - negatives
| 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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex question - negatives
by JavaFan (Canon) on Jan 13, 2011 at 18:05 UTC | |
by ikegami (Patriarch) on Jan 13, 2011 at 18:17 UTC |