[pcre-dev] [Bug 1380] Report match when doesn't match and vi…

Página superior
Eliminar este mensaje
Autor: Zoltan Herczeg
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 1380] Report match when doesn't match and vice-versa
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #2 from Zoltan Herczeg <hzmester@???> 2013-08-17 20:59:53 ---
Ooops, I forgot that another A can be in the input stream:

re> /A.{0,6}(*SKIP)(*FAIL)|B/
data> ABBBABBBBBB

0: B
data>

This one is better:

re> /(A(?:(?!A).){0,6})+(*SKIP)(*FAIL)|B/
data> ABBBABBBBBB

No match
data> ABBBABBBBBBB

0: B

Does this satisfy your needs?


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