View Single Post
Old 11-07-2011, 10:58 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
I'm not very good at regular expressions, but the following quick and dirty search and replace expressions should work:

Seach for:

Code:
<h2 id="([^"]+)" class="chapter"><span class="bold"><a id="([^"]+)"/>([^<]+)</span></h2>

Replace with:

Code:
<a id="\2"/><h2 id="\1" class="chapter"><span class="bold">\3</span></h2>
Doitsu is offline   Reply With Quote