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 <[EMAIL PROTECTED]>  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

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

Reply via email to