How can I do a Find and replace to delete a paragraph marker from paragraphs that don't end in a punctuation mark?
Right now I can find them using
Code: Select all
\w$
Edit: And I guess put a space instead of the replaced paragraph.
Code: Select all
\w$
\>\s\pand replace " " (space character).
\> = end of a word \s = any space character \p = paragraph ending markNote that in the sample you provided most - not all - of the paragraph markers are preceded by a space. In some cases, you will have e.g. a comma, then space then end of para; along with other combinations so you'll have to do a few search/replace to get your document anywhere near normal. Not to mention the places where multiple spaces will be inserted. Welcome to the wonderful world of OCR!
Edit: I was too slow |
Code: Select all
[\.] $
Code: Select all
.
Code: Select all
\p
Code: Select all
Note that Sigil is a multi-platform EPUB ebook Editor, not a text editor. I only use Windows when I need to get screenshots or check how something behaves in that environment so I can't recommend a specific text editor; I'm sure that a number of people will have a suggestion hereI'll look up Sigil.