Quote:
Originally Posted by theducks
You really need to learn basic REGEX. It will be worth the effort  
I have a snippet for my replace. \1 is the REGEX Captured
Code:
<h3 class="chapno">\1</h3>
The search is done on the fly, based upon what is there and what I want:
Note I only work in code view, so I highlight the entire Chapter-title block.,Ctrl-F (that puts it into the find)
eg Original
Code:
<p class="calibre_12"><span class="calibre3"><span class="bold"><span><span class="calibre27">Chapter 4</span></span></span></span></p>
Adjusted Search:
Code:
<p class="calibre_12"><span class="calibre3"><span class="bold"><span><span class="calibre27">(Chapter \d+)</span></span></span></span></p>
In this case, I am looking ONLY for a block that contains Chapter followed by a space and 1 0r more DIGITS. This will not affect any other similarly styled block (Prologue|Epilogue|Forward...)
Check out our Wiki entry
https://wiki.mobileread.com/wiki/Cal...n_introduction
|
Dear i cannot understand i am not converting book in calibre i have epub book which i need to reconstruct in calibre editing tool
so my book have this one exact line of chapters
e g
<p>Chapter One: introduction</p>
<p>Chapter Two: what is learning</p>
<p>Chapter Three: how to start </p>
i want to use this tag in all these lines <h3> </h3>
so can you please write here exact code which will find out all chapter block lines and put that tag on it