in reply to The Great Escape
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!
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: The Great Escape
by ar0n (Priest) on Jul 23, 2000 at 16:45 UTC |
In Section
Perl Monks Discussion