help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange regexp behavior


From: G..
Subject: Re: strange regexp behavior
Date: Thu, 18 Sep 2008 00:40:49 -0700 (PDT)


Thomas Weber-8 wrote:
> 
> The error code returned by PCRE is PCRE_ERROR_MATCHLIMIT.
> 
> The problem happens also with the pcretest program:
> 
> =======================================================================
>   $ pcretest 
>   PCRE version 7.6 2008-01-28
> 
>     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
> =======================================================================
> 

Just for completeness: Philip Hazel (PCRE) suggested to replace, at least in
this particular case, the function pcre_exec with pcre_dfa_exec, which in
fact makes the problem disappear.

G.

-- 
View this message in context: 
http://www.nabble.com/strange-regexp-behavior-tp19463714p19547643.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]