octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #38149] regexp doesn't return empty tokens --


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #38149] regexp doesn't return empty tokens -- they just disappear
Date: Fri, 01 Feb 2013 17:25:25 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0

Follow-up Comment #12, bug #38149 (project octave):

Matlab is being a bit opaque, as usual:

>> version

ans =

7.9.0.529 (R2009b)

>> te = regexp ('abc', 'abc(z)?', 'tokenExtents'); 
>> typeinfo (te)
??? Undefined function or method 'typeinfo' for input arguments of type
'cell'.
 
>> celldisp (te)
 
te{1} =
 
     4     3

 
>> te{:}

ans =

     4     3

>> te[:]
??? te[:]
      |
Error: Unbalanced or unexpected parenthesis or bracket.
 
Here is the result of "help disp" in Matlab:

>> help disp
 DISP Display array.
    DISP(X) displays the array, without printing the array name.  In
    all other ways it's the same as leaving the semicolon off an
    expression except that empty arrays don't display.
 
    If X is a string, the text is displayed.
 
=====================
This not quite the way disp() works in Octave, or actually
the way it seems to work in Matlab.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38149>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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