Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

? with using s///

Status
Not open for further replies.

loosecannon1

Programmer
Feb 19, 2002
55
US
Hi all -

I have a situation where I need to switch all copyright symbols(©) with its HTML entity number(#169;).

Following is what I have, but the Regex machine won't process it.

$topic =~ s/©/#169;/g;

Any ideas?

P.S. I left the & off the entity number so the forum wouldn't transform it to the symbol.

Thanks
 
lemme guess. #169;. Happieness is like peeing your pants.
Everyone can see it, but only you can feel the warmth.
 
<grin>

you want to tell us how you did it loosecannon? Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884
 
Mike,

I'm working with a XML/Perl based content managment tool for web sites. It's supposed to allow developers to add Perl logic between <perl> tags. For some reason it blew up with the regex. I had to add the regex in a module and call it from the XML template.
 
ok... sounds like an interesting tool Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884
 
Thanks, I didn't like to ask in case you weren't able to tell us for some reason. Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top