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

[REBOL] Re: Parsing query. Even Better example.

From: rebol:laurent-chevalier at: 28-Feb-2003 12:57

Here is a solution in one long line :
>> n: copy [] first: n parse str [ any [ "=> " copy data to "," (append
n data) | "Section" thru newline copy data to "," (append/only first compose[(data)] n: last first) | skip ] ] first == [["abc1" "abc2" "abc3" "abcr"] ["abchk" "bdc6" "ghj"]] Laurent Terry Brownell wrote: