[EMAIL PROTECTED] wrote:
I'm fairly new to REBOL and wouldn't be surprised if there is a much better
way to do it.
Fairly new, huh? And programming like a veteran nice work. One little
detail:
substr: func [s k n /local a]
[
a: ""
for i k k + n - 1 1 [a: join a pick s i]
Elan,
Thanks for your kind words. I knew that arrays had the property you tell me
now strings have. I will fix up my function.
Jerry
Jw, also, since your string looks a lot like a CGI value string, you might try using:
decode-cgi
It will return a block of words and values:
block: decode-cgi your-string
foreach [word value] block [print [word value]]
If you DO the result, then you will set the words to the values: