Simple question regarding finding a replacing text between tags...
[1/2] from: tbrownell::yahoo::com at: 11-Sep-2000 23:21
Ok, here goes...
some-html: "... some html with a <tag> set of tags
</tag> and some trailing text..."
Q. How can I find and replace the text between the
tags, while leaving the tags intact, so it ends up
like this...
some-html: "... some html with a <tag> replaced text
</tag> and some trailing text..."
?
Parsed seemed like the way to go, but ?
Replace seemed a bit clunky and added tag brackets
where they shouldn't be... just seems like the wrong
approach.
Thanks,
TBrownell
[2/2] from: chris:ross-gill at: 12-Sep-2000 12:00
Hi,
> some-html: "... some html with a <tag> set of tags
> </tag> and some trailing text..."
<<quoted lines omitted: 4>>
> </tag> and some trailing text..."
> ?
Try this -
some-text: "this text has <TAG> stuff written</TAG> in between tags"
rule: [
thru <TAG>
mark: copy stuff to </TAG>
(replace mark stuff " informative text written")
to end
]
parse some-text rule
- Chris
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted