On Thu, Apr 14, 2011 at 1:12 PM, Mario Maio mario.maio@libero.it wrote:
But I have another question: how do I enter Unicode chars in the rexexp? For example I need to replace "whatever" with “whatever”, I tried to replace
"([^"\r\n]*)"
with
\u201c\1\u201d
but it didn't work.
I know I could generate and concatenate Unicode chars with Lisp, e.g. (code-char #x201c), but it'd be cleaner to do it directly inside the regexp.
For a portable solution, you could give this a try:
Edi.