
27 Aug
2007
27 Aug
'07
5:39 p.m.
Sébastien Saint-Sevin wrote:
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")
bash$ perl -e 'print join(" ", map { "\"$_\"" } split(/\s+/, " foo bar baz ")), "\n"' "" "foo" "bar" "baz" CL-PPCRE is matching Perl's behavior here.