[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38149] regexp doesn't return empty tokens --
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #38149] regexp doesn't return empty tokens -- they just disappear |
Date: |
Thu, 31 Jan 2013 23:29:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 |
Follow-up Comment #5, bug #38149 (project octave):
A fifth test I need run to see how Matlab is handling patterns which don't
match in an alternation operator.
t = regexp (sprintf('%s','John Davis\nRogers, James'),
'(?<first>\w+)\s+(?<last>\w+)|(?<last>\w+),\s+(?<first>\w+)', 'tokens')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38149>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/