Re: [pcre-dev] Problem with a regexp

Página superior
Eliminar este mensaje
Autor: Thomas Weber
Fecha:  
A: pcre-dev
Asunto: Re: [pcre-dev] Problem with a regexp
Hi Juergen,

Am Donnerstag, den 18.09.2008, 01:34 +0200 schrieb Juergen Leising:
> On Wed, Sep 17, 2008 at 10:51:10PM +0200, Thomas Weber wrote:
> (...)
> > re> '(\s*-*\d+[.]*\d*\s*)+\n'
> > data> '\t4\n0000\t-0.00\t-0.0000\t4\t-0.00\t-0.0000\t4\n0000\t-0.00\t-0.0000\t0\t-0.00\t-'
> > Error -8
>
>
> Hello Thomas,
>
> I could avoid this error by stating the PCRE_MATCH_LIMIT_RECURSION
> (cf. man pcretest):
>
>
> pcretest
> PCRE version 7.7 2008-05-07
>
> re> '(\s*-*\d+[.]*\d*\s*)+\n'
> data> \Q200'\t4\n0000\t-0.00\t-0.0000\t4\t-0.00\t-0.0000\t4\n0000\t-0.00\t-0.0000\t0c\t-0.00\t-'
> 0: \x094\x0a0000\x09-0.00\x09-0.0000\x094\x09-0.00\x09-0.0000\x094\x0a
> 1: 4


Doesn't work here, at least not with the original data string. You've
inserted a "c" into the data string, was that intentional?

    Thomas