View Single Post
Old 10-29-2012, 05:57 AM   #1
SanatyrZeo
Junior Member
SanatyrZeo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: pc, kindle
Regex find and replace

Hi, I'm trying to clean up a pdf converted to epub in Calibre that is filled with linebreaks. Using Sigil's regex search/replace is there any expression I could use in Replace that will keep the character from the original string. I can fix most of the line breaks instantly with replace all but lose the character found by the search as well. See below I'm looking for a linebreak followed by lowercase letters (and whatever format code is inbetween).

Search:
</p>

<p class="calibre1">[(a-w)]

Replace:
" "

Result:
The cat drank from the
milk bowl

The cat drank from the ilk bowl
SanatyrZeo is offline   Reply With Quote