[REBOL] Re: help me parse this?
From: brett:codeconscious at: 6-Nov-2000 10:27
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.