Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: regexp filter
       [not found] <86ekpy290o.fsf@number6.magda.ca>
@ 2004-05-05 16:26 ` Johan Bockgård
  2004-05-07  4:46   ` David Magda
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Bockgård @ 2004-05-05 16:26 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: regexp filter
  2004-05-05 16:26 ` regexp filter Johan Bockgård
@ 2004-05-07  4:46   ` David Magda
  0 siblings, 0 replies; 2+ messages in thread
From: David Magda @ 2004-05-07  4:46 UTC (permalink / raw)


bojohan+news@dd.chalmers.se (Johan Bockgård) writes:

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

Thank you to everyone. I decided on the above.

-- 
David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well 
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-07  4:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <86ekpy290o.fsf@number6.magda.ca>
2004-05-05 16:26 ` regexp filter Johan Bockgård
2004-05-07  4:46   ` David Magda

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).