🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #29907

Re: Gravity rule question - "contains phrase"

#29907
From: Marwan Shaban
Date: Wed, 22 Jan 1997 00:00
43 lines
1780 bytes
In article <MPG.d4ee1f84a9032d7989684@news>, thetools@oink-concentric.net 
says...
> I'd like to have Gravity discard articles with these subjects:
> 
> test
> this is a test
> testing
> etc.
> 
> But I don't want to discard articles with, for example, these subjects:
> 
> automated testing
> did you test it first?
> 
> In short, I want to specify that the phrase I've entered is the whole 
> subject (or what follows "Re:"), and not a substring. I'd like to specify 
> "article subject (is|is not)" rather than "article subject (does|does not) 
> contain".
> 
> Is there any way to indicate that a regular expression represents the 
> whole subject, and not a substring of the subject?
> 
> Please post responses here.

From the Gravity help file:

<0>	is an RE that matches the null string at position 0, the beginning 
of the string.

<~0>	matches the null string at the end of the string.

So, the regular expression "<0>test<~0>" will match only the subject 
"test".  Then, you can use the "(", ")", and "|" characters to combine 
multiple subjects you're looking for, e.g., "(<0>test<~0>|<0>this is a 
test<~0>)", etc.

-- 
Marwan Shaban
marwan@microplanet.com


Technical Details
Message-ID: <MPG.d4ff04850efe71f989694@cortez>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <MPG.d4ee1f84a9032d7989684@news>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.d4ff04850efe71f989694@cortez>
Subject: Re: Gravity rule question - "contains phrase"
Date: Wed, 22 Jan 1997 00:00:00 +0000
From: marwan@microplanet.com (Marwan Shaban)
References: <MPG.d4ee1f84a9032d7989684@news>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 211465828
Organization: MicroPlanet, Inc.
Newsgroups: news.software.readers