View Single Post
Old 06-29-2013, 11:46 AM   #20
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,960
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
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.
Been there and made that mistake often enough. I should have double checked instead of typing by memory.

Regards,
David
DNSB is offline   Reply With Quote