On Fri, Jul 15, 2005 at 04:49:29PM -0400, Chris Brooks wrote: > Although, there's a bit of an oddity. For some reason, the smart > quotes are represented by chr(226), rather than chr(14[5|6|7|8]). If > I do a substitution with chr(226) the smart quotes disappear, but they > are replaced with " '<80><9c>" for the left side double smart quote > and "'<80><9d>" for the right side double smart quote. > > Not sure why that is -- anyone want to hazard a guess?
I think you're seeing a multi-byte character. Perhaps try something like this: s/\xe2\x80\x9c/'/g Apparently this also is a "smart" apostrophe: \xe2\x80\x9d Of course, you can combine these with your other regular expressions: s/ \x93 | \x94 | \xe2\x80[\x9c\x9d] /'/gx HTH, -E _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

