Thread
:
Help with Create TOC from XPath
View Single Post
08-29-2019, 01:49 AM
#
8
kovidgoyal
creator of calibre
Posts: 45,594
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nothing super involved, just replace <h2(.+?)>.+< with <h2\1><
then generate the toc, copy it out and revert the changes and paste the toc back.
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS