From: Thorsten Haude Date: 2005-08-21T16:49:11+09:00 Subject: Re: A regex problem --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, * gga wrote (2005-08-21 09:16): >Thus: >'end of line. And we continue' # should match >'The incredible Mrs. Robner' # should not match >'Sammy Davis Jr. is an okay guy.' # should match, due to last . > >I tried doing something logical, like: > >/(?!Jr\.|Sr\.|Miss\.|Mr\.|Mrs\.)\./ > >but, alas, this does not work. Any ideas? Just by looking at it, this only seems to not-find 'Mrs..'. I also wonder why you use a look-ahead, I would rather use a look-behind. As it is, your regex would find any dot, because no dot matches (Jr\.|Sr\.|Miss\.|Mr\.|Mrs\.). So in the regex dialect I know best (NEdit): (?