good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Reg Ex to strip MS smart quotesby freddo411 (Chaplain) |
on Aug 19, 2005 at 17:01 UTC ( [id://485212]=perlquestion: print w/replies, xml ) | Need Help?? |
freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
I'm in the position of needing to write a filter to change "smart quotes" and other MS characters into more friendly ASCII equivalents.
I've searched here ( and found this suggestive node ) , on google, and on CPAN but I haven't found anything even close to what I need. Can anyone provide a code snippet that would be helpful? I'm looking in particular for the list of MS "smart" chars (probably in hex) so that I can match them and convert them. Also, where would you think it should live on CPAN? Regexp::Common: perhaps? Or somewhere else? --Freddo411 -------------------------------------
Back to
Seekers of Perl Wisdom
|
|