From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13488 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.emacs.gnus.user Subject: Re: Getting the right dictionary for e-mail and newsgroup messages Date: Tue, 05 Jan 2010 21:47:34 +0100 Organization: Decebal Computing Message-ID: <87637gqnx5.fsf@Traian.DecebalComp> References: <87pr6374dg.fsf@Traian.DecebalComp> <87637gfjso.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262737354 18212 80.91.229.12 (6 Jan 2010 00:22:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 00:22:34 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Jan 06 01:22:26 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NSJfO-0000xZ-2w for gegu-info-gnus-english@m.gmane.org; Wed, 06 Jan 2010 01:22:26 +0100 Original-Received: from localhost ([127.0.0.1]:46335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSJfO-00066S-8y for gegu-info-gnus-english@m.gmane.org; Tue, 05 Jan 2010 19:22:26 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!cgl.ucsf.edu!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Homepage: http://www.decebal.nl/ User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:DF3U8eYblAgkdV4l+XQX7ee7f2Y= Original-Lines: 27 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: 1262724455 news.xs4all.nl 22933 decebal/[::ffff:84.53.123.169]:22839 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: news.stanford.edu gnu.emacs.gnus:83871 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13488 Archived-At: Ted Zlatanov writes: > CW> I only have one problem. At the moment I need to use: > CW> "^nl\\.\\|\\.nl\\.\\|\\.nl$" > CW> for the regular expression. I would prefer to use something like: > CW> "[\\.^]nl[\\.$]" > > CW> But that does not work. Is there another way to make the regular > CW> expression simpler? > If the '.' character is not in your word class (it shouldn't be), you > can use > > (string-match "\\bnl\\b" "X.nl.X") This also matches: (string-match "\\bnl\\b" "X-nl-X") But I do not think that is a problem. So I now use "\\bnl\\b". That is a lot clearer as "^nl\\.\\|\\.nl\\.\\|\\.nl$" and easier to adopt when another language has to be added. Thanks. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof