T
tom
Just picked up perl to do some emergency task. Hope some expert can
help here.
I'm using perl to cleanse an xml file so it can be parsed. One problem
is to replace strings like this
<font color=669966>:
with:
<font color=669966&rt;
The code is:
$templine =~ s/<font color=669966>/<font color=669966>/g;
The problem is anytime the color value changes, I need to do another
replacement. Can there be a pattern to find this kind of strings. eg
<font ....> and replace them with <font ....>
Thanks for the help.
help here.
I'm using perl to cleanse an xml file so it can be parsed. One problem
is to replace strings like this
<font color=669966>:
with:
<font color=669966&rt;
The code is:
$templine =~ s/<font color=669966>/<font color=669966>/g;
The problem is anytime the color value changes, I need to do another
replacement. Can there be a pattern to find this kind of strings. eg
<font ....> and replace them with <font ....>
Thanks for the help.