🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #28587

Re: NX Question

#28587
From: John Head
Date: Sat, 28 Dec 1996 00:00
52 lines
2142 bytes
Mike,

Apparently by putting whatever expression in the kill file, NX finds that 
expression wherever in the field that it is.  Here's a copy of the text in the 
help file about "regular expressions" use in the NX kill file.

Good luck with your anti-Spam campaign!!

A regular expression consists of one or more statements separated by '|'. A 
statement consists of one or more items. An item consists of zero or more 
operators, and one or more characters. Any character which is reserved for 
operator, must be preceded by a blackslash to match it literally.

Operator                Explanation

?       preceeding item is optional
*       preceeding item occurs zero or more times
+       preceeding item occurs one or more times
^       matches item at the beginning of a line
$       matches item at the end of a line
[chars] match any character in the given list of characters; a range of 
characters may be specified by separating two characters by '-'; for example, 
[a-z], [A-Z], or [0-9]; to specify '-' literally, make it the first or last 
character in the list

[^chars]        match any character not in the given list of characters


Example 1:

test|ignore|make (\$*|money)

This regexp matches any string which contains "test", "ignore", "make $", 
"make $$", or "make money".

Example 2:

ok

[^a-z0-9]ok[^a-z0-9]

The first regexp matches any string which contains "ok", such as "book", 
"look", or "token"; the second regexp matches any string which contains the 
word "ok".


--
John Head
jhead@smartt.com

Technical Details
Message-ID: <5a2dpj$57v@ktk2.smartt.com>
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: <5a161b$sk_032@miketoth.mc.net>

Show Full Headers
Complete Article Headers
Message-ID: <5a2dpj$57v@ktk2.smartt.com>
Subject: Re: NX Question
Date: Sat, 28 Dec 1996 00:00:00 +0000
From: jhead@smartt.com (John Head)
References: <5a161b$sk_032@miketoth.mc.net>
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: 206864238
Organization: KTK Communications Ltd. (SmarttNet, http://www.smartt.com)
Newsgroups: news.software.readers