[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49724] regexp cell array of text not returned
From: |
Juan Pablo Carbajal |
Subject: |
[Octave-bug-tracker] [bug #49724] regexp cell array of text not returned by match contains empty |
Date: |
Mon, 28 Nov 2016 10:49:22 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49724>
Summary: regexp cell array of text not returned by match
contains empty
Project: GNU Octave
Submitted by: juanpi
Submitted on: Mon 28 Nov 2016 10:49:20 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: jpi
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
It seems the output is wrong.
the example
++
strtchunk = "[ONE]\n1\n[TWO]\n2\n";
[S, E, TE, M, T, NM, SP] = regexp (strchunk, '[\[]{1}(\w+)[\]\n]{1}');
--
shouldn't it provide aligned T and SP, but SP always has an empty at the
beginning
++
octave> T
T =
{
[1,1] =
{
[1,1] = ONE
}
[1,2] =
{
[1,1] = TWO
}
}
octave> SP
SP =
{
[1,1] =
[1,2] =
1
[1,3] =
2
}
--
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49724>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49724] regexp cell array of text not returned by match contains empty,
Juan Pablo Carbajal <=