Hello, @m-andre-z-eckenrode, @coises, @mpheath and All,
@mpheath, you said :
The find pattern of \B'\b and replace with ’ might be safer to use as to using anchors to qualify the match instead of consuming with groups which may need more complex conditional handling.
I totally agree with this statement !
That is why I proposed, in my initial post, this alternate formulation :
FIND (?<=\W)'(?=\w)
REPLACE ’
which do not contain any group !
Indeed, the \B'\b and (?<=\W)'(?=\w) Find regexes are equivalent and a Replace All operation would change this INPUT text, below :
't'e's't' 't'o' 's'e'e' 't'h'e' 'm'a't'c'h'e's'
By this one :
’t'e's't' ’t'o' ’s'e'e' ’t'h'e' ’m'a't'c'h'e's'
In other words, any single quote char, preceded by a non-word char and followed with a word char, is changed into the ’ character ( \x{2019} RIGHT SINGLE QUOTATION MARK )
Best Regards,
guy038