View Single Post
Old 10-18-2022, 09:35 AM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,195
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Look in the sticky thread--Saved Search/Regex Functions--at the top of this editor forum, I believe the first post will have the help you need.



bernie
Quote:
Originally Posted by ColMac View Post
Wonder if someone can help an absolute beginner.

I have a number of books that contain many false paragraph breaks part way through a sentence.

An example of the type of code that appears is

</p>

<p class="calibre7">

This of course is the valid code for a correctly placed paragraph break in this book.

It normally appears with no space after the last word, and no space before the next word, and in most (I'm reluctant to say all) cases the last character before the error will be lower case. However, the first character of the following word may well be upper case when a name is used for example.

Would there be a way to check for that code appearing (and Calibre 7 would presumably need to be a variable) when not following the common punctuation marks?

Thanks in hope, as this is way beyond my skills.

Colin
gbm is offline   Reply With Quote