[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47403] 'strsplit' function doesn't work with
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #47403] 'strsplit' function doesn't work with delimiter '+' |
Date: |
Wed, 16 Mar 2016 04:19:05 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #47403 (project octave):
Status: Patch Submitted => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #5:
I checked ostrsplit and it produces the same results as when
CollapseDelimiters is false. When run with that option set the other way it
swallows the last term, which is different than strsplit.
ostrsplit('a+bb++ccd+a++', '+',true)
ans =
{
[1,1] = a
[1,2] = bb
[1,3] = ccd
[1,4] = a
}
I modified the patch because the '+' character is inside of a character class
expression and doesn't need backslash escaping. The cset is here
http://hg.savannah.gnu.org/hgweb/octave/rev/04e0598f8b94.
Marking as fixed and cloing report.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47403>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/