Sterling: Wow!! That's just what I wanted. tj At 09:06 PM 4/10/00 -0700, you wrote: > >You really ought to just try these things. ;) >You'll be surprised at what you find. > >>> parse "one#two%three four" "#%" >== ["one" "two" "three" "four"] >>> > >Sterling > >> I would like to have a function to do >> the following >> 1)take two strings as arguments >> a)arg one is source >> b) arg two is delimiters >> 2)return a series >> >> it would work like this: >> >> my-series: string-to-series "one#two%three four" "#% " >> my-series is returned as ["one" "two" "three" "four"] >> >> BTW: I have a c function that does this. With >> subsequent function calls, it is about 40 lines of >> code. I'm pretty lost when it comes to parse, but >> I bet the rebol function would be shorter. >> thanks >> tim > >
- [REBOL] free web hosting with rebol Re:(2) kracik
- [REBOL] free web hosting with rebol Re:(3) victor
- [REBOL] Re: free web hosting with rebol Re: martin
- [REBOL] free web hosting with rebol Re:(3) Al . Bri
- [REBOL] [REBOL]string to series function tjohnson
- [REBOL] [REBOL]string to series function Re: sterling
- [REBOL] [REBOL]string to series function Re:(2) icimjs
- [REBOL] [REBOL]string to series function Re:(3) sterling
- [REBOL] [REBOL]string to series function Re:(4) icimjs
- [REBOL] [REBOL] [REBOL]string to series function Re:(4) tjohnson
- [REBOL] [REBOL]string to series function Re:(2) tjohnson
- [REBOL] [REBOL]string to series function Re:(2) tjohnson
- [REBOL] [REBOL]string to series function Re:(3) icimjs
- [REBOL] first second third ... last Al . Bri
- [REBOL] first second third ... last Re: icimjs
- [REBOL] free web hosting with rebol Re:(3) tim781