Also, if you want help with Regex, please post samples to test. Sometimes it is very hard to figure out exactly what is wanted.
Are we talking:
#1:
Quote:
It is immaterial whether the restriction of a recipe's use is made possible by institutional conditions--such as patents and copyright laws--or by the fact that a formula is kept secret and other people fail to guess it.
|
#2:
Quote:
It is immaterial whether the restriction of a recipe's use is made possible by institutional conditions -- such as patents and copyright laws -- or by the fact that a formula is kept secret and other people fail to guess it.
|
#3:
Quote:
It is immaterial whether the restriction of a recipe's use is made possible by institutional conditions-such as patents and copyright laws-or by the fact that a formula is kept secret and other people fail to guess it.
|
After #1:
Quote:
It is immaterial whether the restriction of a recipe's use is made possible by institutional conditions—such as patents and copyright laws—or by the fact that a formula is kept secret and other people fail to guess it.
|
After #2:
Quote:
It is immaterial whether the restriction of a recipe's use is made possible by institutional conditions — such as patents and copyright laws — or by the fact that a formula is kept secret and other people fail to guess it.
|
If it is #1 or #2, those can be done with a simple search and replace.
#3 will involve checking nearly every hyphenation in the book, and may or may not be worth it. I would recommend using the Sigil Spellchecker for that (Tools - Spellcheck - Spellcheck (Alt+Q)), and in the search box typing a hyphen. This will give you every single word with a hyphen in it (see attached image).
I recommend at least two passes when fixing hyphenation this way. First with "Show All Words" off, and then one pass with "Show All Words" on.