[pcre-dev] How to use pcretest with Lookbehind assertions?

Página superior
Eliminar este mensaje
Autor: Thorsten Schöning
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] How to use pcretest with Lookbehind assertions?
Hello,

normally I use a tool called QuickREx to test regexes, but one which
matches in QuickREx doesn't with PCRE and therefore I wanted to check
with pcretest. My problem now is that I don't know how to use my regex
in pcretest, it always prints the error: Unknown newline type at:
My regex starts with a Lookbehind assertion at the mentioned position.

Is the syntax (?<!) not allowed in pcretest or am I doing something
wrong? Thanks.

My regex: (?i)(?<!(?:(?:p7m|pk7|pkcs7)\.(?:p7m|pk7|pkcs7))|zip|zip\.(?:p7m|pk7|pkcs7))$

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@???
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/


Telefon.............030-2 1001-310
Fax...............05151- 9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow