I have an HTML page and I need to replace a couple of lines. However, use replacecannot find anything more than one line.
This is what I would like to replace (there are several instances on the page):
....
<div class="logo">
<img src="resources/logo.svg" />
<span>e</span>
<span class="text">Market</span>
</div>
...
Here's the code I'm trying, but it doesn't work:
index-html: read %index.html
logo-div: {<div class="logo">
<img src="resources/logo.svg" />
<span>e</span>
<span class="text">Market</span>
</div>}
new-div: {...}
out: replace/all index-html logo-div new-div
write %index.html out
Inclusion ^/in a line logo-divto indicate translation lines does not help.
How can I find this whole line?
(I use Rebol2, but I assume that the functionality will be the same or very similar in Rebol3.)
source
share