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

[REBOL] Re: Parse refactoring puzzle

From: g:santilli:tiscalinet:it at: 30-Jul-2003 10:11

Hi Sunanda, On Wednesday, July 30, 2003, 8:10:29 AM, you wrote: Sac> So I now want to remove the remaining place-holders: Sac> {Welcome John-Paul your address is The Vatican Roma Italia} Sac> (We don't need to clear the doubled spaces. We'll let the caller do a trim if Sac> that's what they want). QAD, clear-place-holders: func [str [string!] /local out-str start finish] [ out-str: make string! length? str parse/all str [ any [start: to "!!" finish: 2 skip thru "!!" (insert/part tail out-str start finish)] start: to end (insert tail out-str start) ] out-str ] HTH, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: