Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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 <> 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