Re: [pcre-dev] How to use pcretest with Lookbehind assertion…

Página Principal
Apagar esta mensagem
Autor: Philip Hazel
Data:  
Para: Thorsten Schöning
CC: pcre-dev
Assunto: Re: [pcre-dev] How to use pcretest with Lookbehind assertions?
On Mon, 1 Oct 2012, Thorsten Schöning wrote:

> 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))$


I tried this in pcretest, and I got

Failed: lookbehind assertion is not fixed length at offset 48

Did you remember to put the regex in delimiters when feeding it to
pcretest?

Philip

--
Philip Hazel