Difference between Matlab and Octave using regexp with 'once'
Neitzel Karl-Ernst SGD EAZE *
Karl-Ernst.Neitzel at ZF-Lenksysteme.com
Wed Jun 18 07:31:56 CDT 2008
MATLAB 7.5.0.342 (R2007b):
>> regexp('This is an example','^\S*','match')
ans =
'This'
>> regexp('This is an example','^\S*','match','once')
ans =
This
OCTAVE 3.0.1:
>> regexp('This is an example','^\S*','match')
ans =
{
[1,1] = This
}
>> regexp('This is an example','^\S*','match','once')
ans =
{
[1,1] = This
}
----------------
Vorsitzender des Aufsichtsrats: Hans-Georg Härter
Geschäftsführung: Michael Hankel (Vorsitz), Bertram Hoffmann, Wolfgang Runge, Karl-Heinz Schrödl, Wolfgang Zeitz
Sitz: Schwäbisch Gmünd - Handelsregistereintrag: Amtsgericht Ulm HRB 701678
Achtung: Die Werke der ZFLS in Schwäbisch Gmünd liegen seit 1. März 2008 in einer Umweltzone
http://www.zf-lenksysteme.com/index.php?bwp=m:9-n:20-s:-o:-l:1-p:1-na:2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080618/413bb2d5/attachment.html
More information about the Bug-octave
mailing list