View Single Post
Old 01-19-2011, 04:50 PM   #4
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 644
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD
Do a search for
Code:
<p>Chapter ([\d+])</p>
(as cybmole showed)

replace
Code:
<hr class="sigilChapterBreak" /><h3>Chapter \1</h3>
then after the replace, go back to top and remove the first
<hr class="sigilChapterBreak" />
if it's at the beginning of the whole text.
(i.e. there's no preface/prologue/contents etc.)

You can then use the Sigil feature 'Tools>Split on SGF chapter markers' (F6)
to split all those chapters into their own chapter files.
Perkin is offline   Reply With Quote