View Single Post
Old 02-07-2021, 04:52 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,016
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by 413Michele View Post
It didn't work, but that could actually be my fault, as the code I put in the first post was a simplified example and is not exactly the same. I'll put an actual extract:
Code:
<h2 id="sigil_toc_id_1">CAPITOLO I.</h2>

  <h3 id="sigil_toc_id_2">Come Candido è allevato in un bel castello e come n'è cacciato via.</h3>
Edit: To be more precise, your code found no matches
Find:
<h2 (.*?)>(.*?)</h2>{add EOL and spaces here}<h3 (.*?)>(.*?)</h3>

Replace:
<h2 title="\2: \4">\2<br />\4</h2>
DNSB is online now   Reply With Quote