On Sat, Apr 25, 2009 at 07:41:43AM +0200, Alexander Burger wrote:
(filter prog (split (line) ))
Actually,
(extract pack (split (line) ))
would have produced the original output, but keeping unpacked character
lists is usually more convenient for further processing.
--
UNSUBSCRIBE:
Hi Alex,
Thanks, will try it, now going to pick up Francesca.
- Rand
On Sat, Apr 25, 2009 at 7:41 AM, Alexander Burger a...@software-lab.de wro=
te:
Hi Tomas,
01/02/2009 =C2=A0 30.00 =C2=A0 =C2=A0400.00 =C2=A0 =C2=A0t =C2=A0 =C2=
=A0Randall Dow
...
(use (@A @B @C @D @E)
=C2=A0
Thanks all!
(let L (mapcar pack (filter prog (split (line) )))
converts:
01/02/2009 30.00400.00tRandall Dow
to
(01/02/2009 30.00 400.00 t Randall Dow)
which is just what I want. I could have left out the '(mapcar pack'
and left it as a char list, which would still produce a more
Hi Alex,
I read a line, which looks something like:
01/02/2009 30.00400.00tRandall Dow
in which the fields are separated by a varying number of spaces.
That gets put into L, and then I delete the NILs that come
from multiple spaces. Do you have a suggestion for a better
way than
Hi Randall,
I read a line, which looks something like:
01/02/2009 30.00400.00tRandall Dow
in which the fields are separated by a varying number of spaces.
That gets put into L, and then I delete the NILs that come
from multiple spaces. Do you have a suggestion for a better
Hi Tomas,
01/02/2009 30.00400.00tRandall Dow
...
(use (@A @B @C @D @E)
(when (match '(@A @B @C @D @E) (line))
(mapcar clip (list @A @B @C @D @E)) ) )
While this is an elegant solution, it does not work as expected, because
the '@X' symbols do not necessarily