I'm looking for a regexp formula that finds strings starting with a dash and ending with a dash or a point, it order to manually evaluate cases where dashes must be replaced with em-dashes.
For example, the below text:
-hi there. -hello-. It's nice -said while looking at the window- if you could come.
Needs to be replaced with
—hi there. —hello—. —good morning —he said.
But this dashes must remain unchanged:
1992-1994 MTS-O
Since I dont think a fully automated solution is posible, i'm looking to speed up the manual review with a single regexp that replaces these two:
–(.+?)– –(.+?)\.
With one that match a dash or a point at the end, and let me do a fast substitution that conditionally replace the en dash, when that is matched or keeps the point, if thats matched.