Parse maybe overkill for your example.
You could try a string search/replace solution like this...
the-page: {<html><body><form><select><option>blah
blah</option></select></body></form></html>}
the-new-bit:
{<select><option>Red</option><option>Green</option><option>Blue</option></se
lect>}
start-select: find the-page "<select>"
end-select: find/tail start-select "</select>"
insert remove/part start-select end-select the-new-bit
write %new-file.html the-page
Brett.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 06, 2000 1:26 AM
Subject: [REBOL] Re: help me parse this?
> wayne,
>
> whoa, nelly, that's way more complex than I
> need. I'm going to read through your message a
> couple more times to see if I can "get" what
> you're doing.
>
> What I need is only this: I have a local directory
> full of html with something like,
>
> <select>
> <option> blah blah </option>
> <option> blah blah </option>
> <option> blah blah </option>
> </select>
>
> in each page. I have a seperate file, with just
>
> <option> blah blah </option>
> <option> blah blah </option>
> <option> blah blah </option>
>
> I'd like to replace the options on all the pages
> with the options from the other file.
>
> That's alot less complicated than what you're doing!
> :-)
>
> --
>
> Spend less time composing sigs.
> -tom
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.