Re: [pcre-dev] Problem with a regexp

Top Page
Delete this message
Author: Juergen Leising
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] Problem with a regexp
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


Bye, bye

Juergen