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

[REBOL] Re: parsing html : is this correct ?

From: g:santilli:tiscalinet:it at: 8-Jun-2002 12:47

Hi jose, On Friday, June 07, 2002, 1:09:34 AM, you wrote: j> After looking at your example I'm quite confused, I j> think more people have to see this before it's a bug. I think it's the known bug about the way PARSE checks the end of the string. It gets confused if you remove chars from the string. I usually avoid removing from the string I'm parsing, for performance reasons too. I'd rather: rule: [ start: (dest: make string! length? start) any [ to "<script" end: (insert/part tail dest start end) thru "/script>" start: ] to end (insert tail dest start) ] where you get the result in DEST. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r