Thread
:
Regex examples
View Single Post
01-02-2015, 01:59 PM
#
446
eschwartz
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
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.
eschwartz
View Public Profile
Find More Posts by eschwartz
Track Posts by eschwartz via RSS