Your skill will accomplish what the force of many cannot |
|
PerlMonks |
RE: The Great Escapeby chromatic (Archbishop) |
on Jul 23, 2000 at 08:19 UTC ( [id://23960]=note: print w/replies, xml ) | Need Help?? |
That regex looks a little greedy. How about:
s/(.)\[([^]]*?)\]]/linkNodeTitle ($2, $NODE)/egs unless $1 eq '+';
Could be a little faster with the character class in there, too. It's certainly uglier!
In Section
Perl Monks Discussion
|
|