[cl-ppcre-devel] CL-PPCRE Split behaviour
Sébastien Saint-Sevin
seb-cl-mailist at matchix.com
Mon Aug 27 17:12:48 UTC 2007
Hi Edi & list,
While using cl-ppcre:split recently, I discover that when the regex match at pos 0, the function returns an empty string in first pos,
where I think it should not as I do not consider the empty string being a substring of the original one.
I don't know the Perl behaviour in this particular case, but I hope it is not a peculiar behaviour as the doc says :-)
Ex : (cl-ppcre:split "\\s+" " foo bar baz ")
==> ("" "foo" "bar" "baz")
I would prefer to get ("foo" "bar" "baz")
What do you think of it ?
Thks, Sebastien.
More information about the Cl-ppcre-devel
mailing list