Hi,
I want to find
word–word
word –word
word– word
but not
word – word
Presently I am using
([a-z]{1,}|[\u00F0-\u02AF]{1,})–([a-z]{1,}|[\u00F0-\u02AF]{1,})
which may be simplified in some way.
I replace the result with:
$1 – $2
In order to have 4.
Now, would there be a way to create one regex that covers also 2. and 3. (but not 4.) and also allows replacements in order to obtain 4.?