![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Stripping funny charactersby extremely (Priest) |
on Dec 12, 2000 at 06:03 UTC ( #46202=note: print w/replies, xml ) | Need Help?? |
As I recall, the smartquotes are: \x91-\x94.
you should be able to do
$text=~tr/\x91-\x94/''""/; and clean it up nicely;
If they get pasted to "‘" or such html nasties you'll
need a different approach, of course.
--
In Section
Seekers of Perl Wisdom
|
|