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

[REBOL] Re: Read/lines on a string!

From: anton:wilddsl:au at: 21-Sep-2007 2:18

Hi Ed, It's not such a difficult parse, I think, for your final step. Try this:
>> parse/all data [any [copy line to "^/" skip (?? line)] copy line to end
(?? line)] line: {"line1 item1","line1 item2","line 1 item3"} line: {"line2, 'alleged'||item1","None","line2 item3"} line: none == true Just put the lines in a block. By the way, remove a insert a "|" should be faster as: change a "|" Anton.