Thread: TOC h2: h3
View Single Post
Old 09-29-2024, 03:32 PM   #6
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by theducks View Post
<h2 class-"whatever" title="the real words for the TOC">

A little REGEXfoo and you can build the title= bit
What does "title=" do? When I look all I can find is <title>.

My regex was:
Search:
Code:
<p class="cn" id=".*?">(.*?)</p>\
<p class="ct">(.*?)</p>
Replace:
Code:
<h2>\1: \2</h2>
If there were a useful index I might have kept the ids, but word search seems as good.
foosion is offline   Reply With Quote