Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: regexp filter
Date: Wed, 05 May 2004 18:26:32 +0200	[thread overview]
Message-ID: <yoiju0yux2kn.fsf@frealaf.dd.chalmers.se> (raw)
In-Reply-To: <86ekpy290o.fsf@number6.magda.ca>

David Magda <dmagda+trace040423@ee.ryerson.ca> writes:

> Trying to setup use a filter (through 'L') to get rid of common span
> in Usenet. Specifically, I'm trying to get rid of spam with subject
> line like the following:
>
>     Britney Spears and justin timberlake  8272
>
> So I do a key sequence of L-> s -> r -> t. When asked for the string
> I tried ".*  [:digit:]{4}" as well as ".*  [0-9]{4}" (throwing in a $
> at the end would also make the regexp more precise). I also tried
> escaping the spaces ('\ ').

.*  [[:digit:]]\{4\}$

-- 
Johan Bockgård


       reply	other threads:[~2004-05-05 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <86ekpy290o.fsf@number6.magda.ca>
2004-05-05 16:26 ` Johan Bockgård [this message]
2004-05-07  4:46   ` David Magda

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=yoiju0yux2kn.fsf@frealaf.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /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).