View Single Post
Old 04-08-2013, 01:32 PM   #1
dwlamb
Member
dwlamb began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Apr 2013
Device: Android Smartphone
Regex search and replace

I have a file I am trying to clean up. It was converted from a pdf to epub and many new paragraphs were inserted where not necessary.

I stink at regular expression syntax for replace. To find the errant code, I have success with this:
Code:
</p>\n\n <p class="calibre2">[a-z]
For the replace string I merely wish to substitute <space> and whatever is found with the [a-z] component of the search string.

An example would be this:
Code:
.....the</p>

  <p class="calibre2">cat....
I want the replace to result as "...the cat ..."
dwlamb is offline   Reply With Quote