<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<span style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); ">How about using (string-trim " " </span><span style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); ">" 43 76 87 33 89 ") first and then doing split?</span><div style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); "><br></div><div style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); ">See <a href="http://cl-cookbook.sourceforge.net/strings.html#trim" target="_blank" style="color: rgb(0, 104, 207); cursor: pointer; ">http://cl-cookbook.sourceforge.net/strings.html#trim</a> </div><div style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); "><br></div><div style="line-height: 17px; color: rgb(42, 42, 42); font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; background-color: rgb(255, 255, 255); ">Noldus</div><br><div><div id="SkyDrivePlaceholder"></div>> From: edi@agharta.de<br>> Date: Fri, 13 Apr 2012 13:58:27 +0200<br>> To: cl-ppcre-devel@common-lisp.net<br>> Subject: Re: [cl-ppcre-devel] omitting initial void string in split returns<br>> <br>> I don't think there is (unless you want the initial space to be a part<br>> of the first string like "  43").  The easiest solution would be to<br>> call something like REMOVE-IF or DELETE-IF directly afterwards.<br>> <br>> Cheers,<br>> Edi.<br>> <br>> On Fri, Apr 13, 2012 at 12:03 PM, Mario Maio <mario.maio@libero.it> wrote:<br>> > I want to parse strings of space-separated integers, and split is perfect<br>> > except when I have vertical aligned integers. In such cases I've got one or<br>> > more spaces at beginning of string, and the resulting list has a void string<br>> > as 1st element:<br>> ><br>> > CL-USER> (cl-ppcre:split "\\s+" "   43  76  87  33   89  ")<br>> ><br>> > ("" "43" "76" "87" "33" "89")<br>> ><br>> > Is there an option to avoid such initial void string?<br>> ><br>> > Thanks.<br>> ><br>> > Mario<br>> ><br>> ><br>> > _______________________________________________<br>> > cl-ppcre-devel site list<br>> > cl-ppcre-devel@common-lisp.net<br>> > http://common-lisp.net/mailman/listinfo/cl-ppcre-devel<br>> ><br>> <br>> _______________________________________________<br>> cl-ppcre-devel site list<br>> cl-ppcre-devel@common-lisp.net<br>> http://common-lisp.net/mailman/listinfo/cl-ppcre-devel<br></div>                                         </div></body>
</html>