regexp and parentheses: incompatibility with MATLAB

dbateman dbateman at free.fr
Wed Mar 4 15:02:15 CST 2009




John W. Eaton-3 wrote:
> 
> On  1-Mar-2009, dbateman wrote:
> 
> | We already have to partially parse the pattern to deal with matlab style
> | named tokens. I suppose if we want  full matla compatibility we should
> do a
> | simple parse of the RE and escape the unescaped special characters....
> I'll
> | look at this
> 
> Since you can't just escape them all but you have to look for
> mismatched parens (for example) this seems fairly complex to me, and
> something that would be best left to PCRE, which already has to parse
> the expression.  Maybe it would be better to fix the problem there.  I
> don't see it as a priority for fixing this in Octave, but if you see
> an easy way to do it and it can be done in a reliable way, then I
> guess it would be OK.
> 
> jwe
> 

You're right I read too quickly thinking the ( were in the string and not
the pattern

D.
-- 
View this message in context: http://www.nabble.com/regexp-and-parentheses%3A-incompatibility-with-MATLAB-tp22229584p22339274.html
Sent from the Octave - Bugs mailing list archive at Nabble.com.



More information about the Bug-octave mailing list