[cl-ppcre-devel] Fwd: string length limit ?

Edi Weitz edi at weitz.de
Thu Apr 14 12:52:43 UTC 2011


On Thu, Apr 14, 2011 at 1:12 PM, Mario Maio <mario.maio at 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:

  http://weitz.de/cl-interpol/

Edi.




More information about the Cl-ppcre-devel mailing list