Quote:
Originally Posted by vivka
Or a little shorter:
Code:
, [A-Z]([ A-Za-zü\-])*,
|
In post #15 Greg's wrote: Specifically the last instance ", John smith," is returned as a match. How could we PREVEN T that?" So Greg's wants to find "John Smith," but he doesn't want to find "John smith,"
Your code will find ", John smith," and that's not what Greg wants.
I also want a simpler pattern, but for now I've provided a pattern that at least meets Greg's requirements.