Re: [pcre-dev] PCRE2 is released

Página superior
Eliminar este mensaje
Autor: Giuseppe D'Angelo
Fecha:  
A: Jean-Christophe Deschamps
Cc: pcre exim
Asunto: Re: [pcre-dev] PCRE2 is released
On 5 January 2015 at 17:57, Jean-Christophe Deschamps
<jch.deschamps@???> wrote:
> While this seems reasonnable at the first look, linking of these options has
> one unfortunate drawback: it dramatically changes the semantics of \w, \W,
> \b etc. and previously working patterns over UTF strings could produce
> different results.


What do you mean? \w changes matching from ASCII to the Unicode
property if you compile the pattern with PCRE2_UCP (*). Those are
configure-time options to build PCRE2 itself with or without
Unicode/UCP support.

(*) and if you're afraid of a (*UCP) inside a pattern, then there's
PCRE2_NEVER_UCP to always disable UCP.

Cheers,
--
Giuseppe D'Angelo