Hi,

> >> rejoin word-split "hellotherethisisanexample" "this"
> == "hellothereisanexample"

Can do better, and not use preset words (d'oh!)...

- Chris

--
REBOL []

word-split: func [
    string [string!] word [string!] /local txt blk
][
    blk: copy []
    while [txt: find string word][
        append blk copy/part string txt 
        string: skip txt length? word
    ] 
    append blk string return blk
]

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to