View Single Post
Old 06-12-2015, 06:36 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Too many hyphens

Trying to clean book from Project Guttenberg that must have stated life as a scan.

There are many mis-placed or not needed hyphens everywhere

example 1: bat-tered
example 2: $500,- 000
example 3: the cat and -the dog
example 4: the cat- and the dog

I've been using spellcheck, one mis-spelt word at a time

Is there any RegEx's that have been used to at least take some of the tedium out of it?

That way I could just [Find] and [Replace and Find] through the document

Would really like a RE that would address common cases so I could do a [Replace All]

Thanks
phossler is offline   Reply With Quote