JW,
I think the code below does what you want. Here is what it does:
>> s: "sfsfkppiovranmnsvkey1=88888key2=44444444key3=222222"
== {sfsfkppiovranmnsvkey1=88888key2=44444444key3=222222}
>> keysubstr s "key1=" "key2="
== "88888"
>> keysubstr s "key2=" "key3="
== "44444444"
>>
I'm fairly new to REBOL and wouldn't be surprised if there is a much better
way to do it.
Jerry
substr: func [s k n /local a]
[
a: ""
for i k k + n - 1 1 [a: join a pick s i]
a
]
keysubstr: func [s k1 k2]
[
a1: find s k1
a2: find s k2
substr a1 1 + length? k1 (length? a1) - (length? a2) - length? k1
]