help-octave
[Top][All Lists]
Advanced

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

Re: regexp peculiarity


From: David Bateman
Subject: Re: regexp peculiarity
Date: Sat, 03 Jun 2006 18:26:57 +0200
User-agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322)

MarkC Westwood wrote:
> Hi
> 
> Sorry if this is old hat, but I couldn't find any reference to it in
> the mailing list archives.
> 
> I'm porting a code from Matlab to Octave.  Making steady progress (for
> a Fortran programmer that is) but got puzzled by Octave's reluctance
> to process a call to regexp.  Dug deep, read the documentation (Matlab
> and Octave) and read the error messages.  It seems that both Matlab
> and the Octave documentation make a call to regexp like this:
> 
> regexp('string to match against, 'regular expression')
> 
> but that the implementation of regexp switches the order of arguments.
>  The function does not seem to like optional arguments either, such as
> 'start' in 3rd position.
> 
> Have I missed something ?
> 
> I'm running Octave 2.1.71 on SuSE Linux 10
> 
> Regards
> Mark Westwood
> MTEM Limited
> www.mtem.com

This is true of the old regexp implementation in octave-forge. However
there is a fully matlab compliant regexp in 2.9.5, with significant
speed-ups for it in the CVS. If this is your blocking point, I'd suggest
 using octave 2.9.5

D.


reply via email to

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