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

[REBOL] parse with skip Re:(3)

From: brian:hawley:bigfoot at: 21-Aug-2000 13:04

Volker wrote:
>how about (if no ";" inside data!) ? > >a: >{9;"1081230012";9999999;1000103;0;84.00;0;9999999;0.84;1;"6";0;991030;0;73.92;0.84;9;"L";991030;0; >108;123;0;" "} > >b: parse a ";" > >{ >== ["9" "1081230012" "9999999" "1000103" "0" "84.00" "0" "9999999" "0.84" >"1" "6" "0" "991030" "0" "73.92" "0.84" "9" "L" "991030" "0" "108" "123" >"0" " "] ; block! >}
Actually, that will work even if there is ; in the data, as long as those data are in "". You should probably use b: parse/all a ";" instead, just in case there are spaces in the data outside of quote marks. Another cool trick you can use if the fields have names is set [a b c] parse/all "1;2;3" ";" Does that help? Brian Hawley