help-octave
[Top][All Lists]
Advanced

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

strange regexp behavior


From: G..
Subject: strange regexp behavior
Date: Fri, 12 Sep 2008 13:39:55 -0700 (PDT)

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.
-- 
View this message in context: 
http://www.nabble.com/strange-regexp-behavior-tp19463714p19463714.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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