View Single Post
Old 03-02-2011, 12:09 PM   #27
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I suspect that there is a way to do it with XPATH, but you could just use search and replace:
Search:
Code:
(?P<hopen><h2[^>]*)><img alt="(?P<title>.*?)"
Replace:
Code:
\g<hopen> title="\g<title>"><img
After that just open it in Sigil and it will create a TOC, save and your done.
ldolse is offline   Reply With Quote