From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3234 Path: news.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.user Subject: Re: regexp: matching a short regexp within a long regexp Date: Wed, 03 Dec 2003 13:36:17 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669426 18201 80.91.229.2 (31 Jan 2006 01:03:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:03:46 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:31:54 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:wMcU5yyjLCyW7m/SIz/xKtoHMf8= Original-NNTP-Posting-Host: lumberjack.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1070454984 134.60.10.173 (3 Dec 2003 13:36:24 +0100) Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.powertech.no!news.eunet.no!fi.sn.net!newsfeed2.fi.sn.net!news2.euro.net!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!ecngs!feeder.ecngs.de!newsfeed.stueberl.de!feed.news.tiscali.de!news.belwue.de!news.uni-ulm.de!lumberjack.physik.uni-ulm.de!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:3375 Original-Lines: 26 X-Gnus-Article-Number: 3375 Tue Jan 17 17:31:54 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3234 Archived-At: On Tue, Dec 02 2003, Patrick Drechsler wrote: > ;; DOESN'T work: > ((string-match "\\?suse\\?" group-plain) "Unix") > ;; ((string-match "\\.suse\\." group-plain) "Unix") > --8<------------------------schnapp------------------------->8--- > > How can I match all mailing-lists which include the phrase "suse"? > > I thought that one of the two mechanism (. or ?) would work like "no > matter what character shows up"... Try "suse" or "\\bsuse\\b" see (info "(emacs)Regexps"). The first will also match foosuseblub, the later will match things like "foo.suse.bar" or "fasel-suse-list". Your "\\.suse\\." requires a dot before _and_ after "suse". > Thankful for any pointers, (info "(emacs)Regexps") probably is a good starting point. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/