View Single Post
Old 06-05-2014, 09:47 PM   #23
Psipherious
Junior Member
Psipherious began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2014
Device: Kobo + Android Tablet(s)
Quote:
Originally Posted by ewphoenix123 View Post
This would replace the last letter of every found word aswell, I tend to make that mistake and have to start from scratch. :P
The proper regex for the operation would be something like:

Find: ([a-z])</span></p>\s+ <p><span class="font10">
Replace: \1 (\1single space character)

Find: ([a-z]),</span></p>\s+ <p><span class="font10">
Replace: \1, (\1,single space character)

Find: ([a-z])-</span></p>\s+ <p><span class="font10">
Replace: \1 (\1)


<p><span class="font10"> has to be replaced by the ones used in your file.
Thanks for this guys, very helpful, I came up with my own regex expression, a little more generic like so which works fantastic for me and I just do a "replace all":

Code:
Find: ([a-zA-Z1-9/%:,])</p>\s+<p class="[a-zA-Z1-9]+">
Replace: \1
Just wanted to add to this super helpful discussion.

(My first post too, long time lurker.)
Psipherious is offline   Reply With Quote