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

Página superior
Eliminar este mensaje
Autor: Philip Hazel
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 867] "\w" no longer functions
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=867




--- Comment #1 from Philip Hazel <ph10@???> 2009-07-27 22:21:46 ---
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


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email