From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: regexp: matching a short regexp within a long regexp
Date: Wed, 03 Dec 2003 13:36:17 +0100 [thread overview]
Message-ID: <v9k75e6ptq.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <m38ylvynrv.fsf@pdrechsler.fqdn.th-h.de>
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/
prev parent reply other threads:[~2003-12-03 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-02 20:20 Patrick Drechsler
2003-12-03 12:36 ` Reiner Steib [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9k75e6ptq.fsf@marauder.physik.uni-ulm.de \
--to=4.uce.03.r.s@nurfuerspam.de \
--cc=reiner.steib@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).