[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49659] Non-empty ouput for non-matching regex
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #49659] Non-empty ouput for non-matching regexp with 'names' option |
Date: |
Mon, 21 Nov 2016 12:38:18 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49659>
Summary: Non-empty ouput for non-matching regexp with 'names'
option
Project: GNU Octave
Submitted by: gyom
Submitted on: Mon 21 Nov 2016 12:38:16 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Octave's output differs from Matlab's when using the 'names' flag and nothing
matches.
Octave:
>> r = regexp('nothing','(?<file>\S+) (?<id>[0-9]+)','names')
r =
scalar structure containing the fields:
file = {}(1x0)
id = {}(1x0)
>> size(r)
ans =
1 1
and Matlab:
>> r = regexp('nothing','(?<file>\S+) (?<id>[0-9]+)','names')
r =
0×0 empty struct array with fields:
file
id
>> size(r)
ans =
0 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49659>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49659] Non-empty ouput for non-matching regexp with 'names' option,
Guillaume <=