[REBOL] Re: Prese Question: skipping spaces?
From: henrikmk::gmail::com at: 29-Aug-2008 14:50
On Fri, Aug 29, 2008 at 2:42 PM, Thorsten Moeller <tmoeller-fastmail.fm> wrote:
> Hi,
>
> i want to parse files with lines from an application log.
>
> The files contain lines where the columns are separated by spaces. My
> problem now is that i just wanted to see only specific columns. But, if
> the content of one column is longer, there are less spaces to the next
> column.
>
> When i use >a: parse/all line " "< and get the part a/22 it is not
> necessarily always the 5th column depending on the number of spaces
> between the columns.
Possibly trim/lines on each line before parsing it. That will remove
extra spaces and allow you to parse on each single space.
>> trim/lines "a b"
== "a b"
--
Regards,
Henrik Mikael Kristensen