Re: [pcre-dev] [Bug 867] New: "\w" no longer functions

Página Principal
Apagar esta mensagem
Autor: Philip Hazel
Data:  
Para: 867
CC: pcre-dev
Assunto: Re: [pcre-dev] [Bug 867] New: "\w" no longer functions
On Mon, 27 Jul 2009, Mart Goodall wrote:

> I have upgraded from version 6.7 to 7.9, made no further change other than
> recompile, and now the code does not return the same result.
> The search string I am using is "[^\w\s.|-]" and when searching regular text
> such as "Maureen Hubbard" (8 bits per character), it used to fail (correctly)
> with pattern not found, but now returns the first character "M" as matching the
> pattern. As a workaround, I have replaced the search pattern with "[^A-Za-z0-9
> ]" which functions as expected, i.e. fails to match a pattern. A grep on google
> shows someone else had a similar issue.


I cannot reproduce this behaviour on Gentoo Linux, using the pcretest
program:

  PCRE version 7.9 2009-04-11
    re> "[^\w\s.|-]"

data> Maureen Hubbard

No match
data>


Please try with pcretest on your Windows box. Also, please can you post
the configuration summary with which you compiled PCRE. You can get this
from "pcretest -C". Bugs can sometimes be related to which options were
used at compile time, and mine may be (probably are) different to yours.

Philip

--
Philip Hazel