View Single Post
Old 10-07-2024, 03:48 PM   #28
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 JSWolf View Post
I would like to have an h2 tag. I would like to change <h2 class="someclasidon'twant">Chapter Title</h2> to <h2>Chapter Title</h2>.
Why not just regex for that?

Find <h2 class="someclasidon'twant">(.*?)</h2>

Replace <h2>\1</h2>
foosion is offline   Reply With Quote