Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Simple question regarding finding a replacing text between tags... Re:

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..." > > 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..." > ?
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