Have I over-complicated this?
My aim was to come up with one regex to find
‘s and
<space>‘s that followed any Unicode text and could be followed by either a space or punctuation, then replace the curly quote and remove the extra space.
Find
Code:
((?<=([\p{Ll}]))‘s(?=([\p{P}|\s]))|(?<=([\p{Ll}]))\s‘s(?=([\p{P}|\s])))
Replace
fooè
‘s foo foo
‘s foo fo's foo
‘s foo ’s dog ‘scooter’