🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6436

Re: How to NOT select articles that match regexp

#6436
From: Gothick
Date: Thu, 22 Sep 1994 19:24
29 lines
2080 bytes
jcw@mti.sgi.com () writes:

>When ever I read the comp.editors group I always use '=vi' to
>automatically select all articles about vi.  However, that regexp
>matches vim.  I don't care to read about vim.  Is there a negate regexp
>I can use to de-select all articles with 'vim' in the subject line? 
>I've tried '^vim' and '!vim', but no luck.  Any suggestions?

Well, '^vim' matches beginning-of-line followed immediately by 'vim' ('^'
means beginning of line, '$' means end -- this is why in nn to go to the
beginning of an article is '^', to the end is '$').  '!vim' will match
'!vim', as far as I know.

To combine your two questions, try searching for 'vi[^m]' (ie do =vi[^m]) --
this will match the string 'vi' only as long as it isn't followed by the
character 'm'.  Should be just what you need -- I just tried it on
comp.editors and it seems to work.

It surprises me that someone so interested in VI would not know a lot about
the regular expressions ;-)

Cheers,

Matt
-- 
 Matthew B. M. Gibson:                                        ______
 gothick@dcs.warwick.ac.uk - csudo@csv.warwick.ac.uk          \  __/_
 "Aah... Yes, and how does madam wish to pay?"  -- Iain Banks  \ \/ /
  She slapped her credit card on the counter. "Eventually."     \/\/
Technical Details
Message-ID: <1994Sep22.192426.28286@dcs.warwick.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!pipex!lyra.csx.cam.ac.uk!warwick!news.dcs.warwick.ac.uk!not-for-mail
References: <358f9m$3h9@miranda.mti.sgi.com>

Show Full Headers
Complete Article Headers
Message-ID: <1994Sep22.192426.28286@dcs.warwick.ac.uk>
Subject: Re: How to NOT select articles that match regexp
Date: Thu, 22 Sep 1994 19:24:26 GMT
From: M.Gibson@dcs.warwick.ac.uk (Gothick)
References: <358f9m$3h9@miranda.mti.sgi.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!pipex!lyra.csx.cam.ac.uk!warwick!news.dcs.warwick.ac.uk!not-for-mail
Newsgroups: news.software.nn
Sender: news@dcs.warwick.ac.uk (Network News)
Nntp-Posting-Host: stone
Reply-To: gothick@dcs.warwick.ac.uk
Organization: Department of Computer Science, Warwick University, England
Lines: 29