View Single Post
Old 04-27-2012, 09:52 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Perkin View Post
If they are you should be good to use this for search (regex mode)

Code:
<p class="calibre8" id="filepos\d+"><span class="calibre6 bold">(.+?)</span></p>
Replace with this

Code:
<h3>\1</h3>
You'll want to be careful there are no nested spans tags inside the <span class="calibre6 bold"> element. Given how those sections are already being used as headers, that would probably be pretty rare, but it could result in a bit of mess if that regex came upon something like:
Code:
<p class="calibre8" id="filepos170176"><span class="calibre6 bold"><span class="italic">Spicy Escarole with Croutons and Eggs</span></span></p>
DiapDealer is offline   Reply With Quote