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

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

[Octave-bug-tracker] [bug #53095] strsplit fails to split a string with


From: Anushi Maheshwari
Subject: [Octave-bug-tracker] [bug #53095] strsplit fails to split a string with a delimiter of '\n' (null character)
Date: Mon, 12 Feb 2018 04:56:03 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Follow-up Comment #5, bug #53095 (project octave):

@Rik I tried running this in Octave and it is still returning same error as
previous.


error: regexp: missing ) at position 1 of expression
error: called from
    strsplit at line 212 column 19


Also, to my suprise I have noted different behaviour of regexp


str='abc';
delim= '(())';
s=regexp(str, delim, 'split', 'match')
% Return Output
s=
{
        [1,1] = abc
}




str='abc';
delim='(()';
regexp(str, delim, 'split', 'match');
% Throws error
error: regexp: missing ) at position 3 of expression


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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