View Single Post
Old 10-29-2013, 04:27 AM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Make sure you turn on Regex mode:

Click image for larger version

Name:	timebreak.png
Views:	238
Size:	25.6 KB
ID:	114152

Search:
Code:
<p class="timebreak">&nbsp;<br class="calibre1" /></p>\s*<p class="timebreak">
Replace:

Code:
<p class="left">
Or if there are many calibre#s (and not just "calibre1" in that position), you will want to use this Search instead:

Code:
<p class="timebreak">&nbsp;<br class="calibre[0-9]+" /></p>\s*<p class="timebreak">
Red section says look for any "calibre", followed by one or more 0-9. This means it will match "calibre1", "calibre2", .... "calibre99999".

Blue section says look for zero or more "white space".

WARNING: Whenever using Regex, be extremely careful, and DO NOT use "replace all" until you have manually done "Replace" "Replace" "Replace", paying careful attention to make sure everything is working correctly. Save a copy of the EPUB before you go use Regex.
Tex2002ans is offline   Reply With Quote