View Single Post
Old 12-29-2012, 02:26 AM   #3
wobohohoho began at the beginning.
wobohohoho's Avatar
Posts: 15
Karma: 10
Join Date: Dec 2012
Location: KL, Malaysia
Device: Freda (WP 7.8) EPUB reader app
I've somewhat solved the problem for the second part of finding the unique subchapters that have codes like:

      <div class="TLV1" id="B01306002.0-90" id_xpath="/CHAPTER[1]/TBD[1]/TLV1[18]">
        <div class="HD" id="H10-1" id_xpath="/CHAPTER[1]/TBD[1]/TLV1[18]/HD[1]">
          On being busy: Corrigan's secret door
With find:
<div class="TLV1"\s+(.*?)\s+<div class="HD"(\s+(.*?)\s+)(\s+(.*?)\s+)</div>
And replace:
<div class="TLV1" \1<h2 class="HD"\2\4</h2>

But now I pick up SIDEBAR elements as well. So whatever search string that would ignore the word SIDEBAR should work with both.
wobohohoho is offline   Reply With Quote