[Issue 10772] std.regex.splitter generates spurious empty elements with empty delimiter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 19 08:51:41 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10772
--- Comment #3 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-12-19 08:51:38 PST ---
(In reply to comment #2)
> $ perl -e'print join(":", split(//, "test")), "\n";'
> t:e:s:t
> $
>
>
> So yes, I expect std.regex.splitter to return ["t", "e", "s", "t"] when the
> delimiter is empty.
But then there is this:
perl -e'print join(":", split(/, /, ", test, ")), "\n";'
:test
That makes no sense to me whatsoever.
We have tests already (always had, even before 2.056) that state the opposite.
In fact they make sure that both zero-width pieces are found (at start and at
end).
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list