[cl-ppcre-devel] CL-PPCRE Split behaviour
Matthew Sachs
msachs at itasoftware.com
Mon Aug 27 17:39:58 UTC 2007
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.
More information about the Cl-ppcre-devel
mailing list