[cl-ppcre-devel] omitting initial void string in split returns

Mario Maio mario.maio at libero.it
Fri Apr 13 10:03:24 UTC 2012


I want to parse strings of space-separated integers, and split is 
perfect except when I have vertical aligned integers. In such cases I've 
got one or more spaces at beginning of string, and the resulting list 
has a void string as 1st element:

CL-USER> (cl-ppcre:split "\\s+" "   43  76  87  33   89  ")

("" "43" "76" "87" "33" "89")

Is there an option to avoid such initial void string?

Thanks.

Mario





More information about the Cl-ppcre-devel mailing list