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

[REBOL] Re: Find? Copy/Part?

From: tomc::darkwing::uoregon::edu at: 18-Jan-2005 22:25

Carlos you might also consider converting your delimited string into a block (yes... with parse) and using the items in the block (more rebolish) does seem like what you ultimatly want to do with your string anyway
>> str: "aaa*bbb*ccc*ddd"
== "aaa*bbb*ccc*ddd"
>> blk: parse/all str "*"
== ["aaa" "bbb" "ccc" "ddd"]
>> second blk
== "bbb"
>> skip blk 2
== ["ccc" "ddd"]
>> select blk "ccc"
== "ddd" etc ... all of rebols series slicers and dicers On Tue, 18 Jan 2005, Volker Nitsch wrote: