in reply to regex & variable substitution
s/&([^;]+);?/"&#".exists $lookup{$1} ? $lookup{$1} : $1.";"/e; should work the way you want it?!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regex & variable substitution
by kiz (Monk) on Jul 11, 2005 at 09:37 UTC |
In Section
Seekers of Perl Wisdom