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

[REBOL] Re: Newbie Q: Search and delete from a Block

From: chris:ross-gill at: 8-Oct-2002 13:05

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 ]