[pcre-dev] pcretest vs multiline global match on assertions

Página superior
Eliminar este mensaje
Autor: Sheri
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] pcretest vs multiline global match on assertions
Hi Philip,

I'm finding some problems that don't seem to be confined to "any". For
the following two patterns and data (and for similar patterns/data using
other newlines) I get the same result in RC3 and RC4 (patched). I think
there should be two matches for each of these patterns. There is also a
different result for the + info for the caret pattern using the (?m) vs
/m form of multiline.

Regards,
Sheri

C:\pcre71RC4-EXP\testpatch\.libs>pcretest -C
PCRE version 7.1-RC4 2007-04-04
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is ANY
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses heap

C:\pcre71RC4-EXP\testpatch\.libs>pcretest
PCRE version 7.1-RC4 2007-04-04

re> /(?m)$/g+<lf>
data> abc/ndef/n

0:
0+
data> /(?m)^/g+<lf>

0:
0+
data> abc/ndef/n

0:
0+
data>
re> /^/mg+<lf>
data> abc/ndef/n

0:
0+ abc/ndef/n
data>