help-octave
[Top][All Lists]
Advanced

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

Re: strange regexp behavior


From: Sergei Steshenko
Subject: Re: strange regexp behavior
Date: Fri, 12 Sep 2008 17:30:35 -0700 (PDT)



--- On Fri, 9/12/08, G.. <address@hidden> wrote:

> From: G.. <address@hidden>
> Subject: strange regexp behavior
> To: address@hidden
> Date: Friday, September 12, 2008, 1:39 PM
> I found a magic string that produces the following regexp
> behavior:
> 
> octave:1>
> s=sprintf('\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-')
> s =   4
> 0000  -0.00   -0.0000 4       -0.00   -0.0000 4
> 0000  -0.00   -0.0000 0       -0.00   -
> octave:2> regexp(s,
> '(\s*-*\d+[.]*\d*\s*)+\n')
> error: regexp: internal error calling pcre_exec
> 
> I verified this on 3 different machines (running 3.0.2). It
> really depends
> on this particular string/pattern. Matlab shows no
> problems.
> 
> G.

I confirm the bug - self-built 3.0.2 (and pcre) on SUSE 10.3 box.

Regards,
  Sergei.


      


reply via email to

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