View Single Post
Old 02-15-2011, 10:40 AM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Help with regular expression search/replace

When converting ebooks from any format for use on my Kindle, I always convert to epub first and do any editing or cleanup in Sigil before the final conversion to mobi. A common problem I run into when converting files from one format or another to epub is left or right quotes with no space between them and the preceding or following character. An extra space is easy to find but any other character is not so easy to find.

I'm thinking there should be a way to search for these occurrences with a regular expression but I'm not familiar enough with them to come up with one that works. I've tried and haven't had much luck so far.

Would anyone out there more familiar with regular expressions be able to assist me? Basically, I want to be able to find any string where anycharacterexceptspace/“ or ”/anycharacterexceptspace and be able to replace it with anycharacterexceptspace/ “ or ” /anycharacterexceptspace.

Any ideas?

Thanks.

- Byron
bfollowell is offline   Reply With Quote