[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43649] strfind returns matches for empty patt
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #43649] strfind returns matches for empty pattern |
Date: |
Thu, 20 Nov 2014 17:43:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0 |
Follow-up Comment #1, bug #43649 (project octave):
$ echo "foo" | grep ''
foo
>>> import re
>>> re.findall('', 'foo')
['', '', '', '']
Perl> my @m = "foo" =~ m//g;
4
Perl> foreach (@m) {print $_ . "h\n";}
h
h
h
h
I guess we will still need to fix this for Matlab compatibility though.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43649>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/