Quote:
Originally Posted by eschwartz
Code:
(?<=\p{Ll})\s?‘s(?=\p{P}|\s)
Mainly, just make the space optional which cuts the regex in half. You can also remove some of the groupings you used.
|
Thanks,
Changing it a little more I've started looking for things other than the s, allowing for uppercase and full stops.
Code:
(?<=\p{Ll}|\p{Lu}|\.)\s?‘(d|m|s|t|ll|re|ve)(?=\p{P}|\s)