From: Aredridel Date: 2004-06-11T02:08:48+09:00 Subject: Re: Smart Quotes On Thu, 2004-06-10 at 13:26 +0000, Martin DeMello wrote: > Trying to save myself a bit of tedium - has anyone already written code > to replace smart quotes and other such extensions with their normal > ascii equivalents? In what character set? While normal quotes fall in the ASCII set, smart quotes don't, so the replacing them will depend on the character set. For UTF-8, try gsub(/“(.*)”/, "\"\1\"") -- though that'll only get one possible set of quotes. There's also the German-style low-high quotes, like „this”, and the French like «this» -- I don't know what cases you're trying to solve. Ari