View Single Post
Old 08-02-2013, 10:53 PM   #12
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
There is also this regex that I use, but be warned again, this will find (nearly) every single hyphen... and takes forever to click through the entire book one by one.

This is why I initially recommended the Sigil Spellcheck method.

Search:

Code:
([A-Za-z])-([A-Za-z])
Replace:

Code:
\1—\2
This will work on hyphens like in my Case #3 above.

And again, I like to stress... SAMPLES SAMPLES SAMPLES. They really help everyone figure out what you mean, and allows us to help better.

As a side note, I use a variation of this regex to handle adding en dashes between years/page numbers:


Search:

Code:
([0-9])-([0-9])
Replace:

Code:
\1–\2

Last edited by Tex2002ans; 08-02-2013 at 10:58 PM.
Tex2002ans is offline   Reply With Quote