View Single Post
Old 02-17-2014, 11:22 AM   #15
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
No, you need to change the function to replace both the comment and the following number (if any), like this:
What would happen if the <!-- comment# --> was something like multiple and varing words or a epub metadata? For example


(ver1) epub text with tags = Fiction, Adventure, Escapist, PubDomain

"and the tags in my book are <!-- tags -->"


Find:

Code:
<!-- tags -->
Replace:

Code:
Tag function ()
[no idea how to actually write it]

Result #1:

"and the tags in my book are <!-- tags --> Fiction, Adventure, Escapist, PubDomain"

(ver 2) If I were to revise the tags to "Fiction, Adventure, Public Domain", then is it possible to replace the original "Fiction, Adventure, Escapist, PubDomain" with the updated tags?
phossler is offline   Reply With Quote