Re: [pcre-dev] [Bug 1450] Incompatibility that stuck website…

Startseite
Nachricht löschen
Autor: ph10
Datum:  
To: 1450
CC: pcre-dev
Betreff: Re: [pcre-dev] [Bug 1450] Incompatibility that stuck website with vBulletin
On Thu, 6 Mar 2014, Zoltan Herczeg wrote:

> --- Comment #5 from Zoltan Herczeg <hzmester@???> 2014-03-06 12:45:20 ---
> I am sorry, but I don't understand what you want. That pattern is wrong and
> needs fixing, and I explained how can you do it (if dash should be part of the
> character set). From my perspective it doesn't matter where or how it is used.


And if you try this regex in Perl with the -w (warning) flag, you get
this:

False [] range "_-\s" in regex; marked by <-- HERE in m/[_-\s <-- HERE ]/ at (eval 1) line 1, <STDIN> line 1.

This is the ChangeLog entry for PCRE version 8.34:

34. Character classes such as [A-\d] or [a-[:digit:]] now cause compile-time
    errors. Perl warns for these when in warning mode, but PCRE has no facility
    for giving warnings.


Philip

--
Philip Hazel