🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Spaminator Thu, 05 Dec 1996 00:00
Re: NX - kill $ signs
#28099
Author: Spaminator
Date: Thu, 05 Dec 1996 00:00
80 lines
3531 bytes
In article <582nbv$95r$3@nic.ott.hookup.net>, carlosa@hookup.net wrote:

>I'm using News Xpress and want to add $$$ to my killfile to kill all those 
>annoying "$$$$ make money fast $$$$" spams.  Putting kill $$$ in subject field 
>just killed everything because (I assume) NX is looking at $ as a global 
>variable (or whatever its called).  How can I get around this?
>Any suggestions welcomed and appreciated.
>

The below is from the NX.HLP file.

 ===begin===
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".

 ===end===

So, you have to be VERY careful with the "$". It's like the "*" in DOS/Unix. 
It'll match ANYTHING from that position to the end of the line. So, taking the 
above example of "make $", we might just kill "Make spammers go away", "Make 
the best gumbo ever" or "Make file for an anti-spammer killfile".

Personally, I try to stay away from the "$" sign, and use as long of a string 
so as to not globally kill stuff I want to read. They do tend to use the same 
words, such as "make money", "fast cash" and now that Christmas is almost upon 
us, there's the newer ones about money for the holidays. (Several flavors of 
that one.) There's also the newer ones that bring God into it, and make people 
think they're giving money like they do in Church. (It's STILL illegal, 
nonetheless.)

So, if you still want to play around with it, go ahead. Just remember that 
EVERYTHING after the "$" is, basically, considered junk by NX, and will be 
ignored. If you place a "$" on the first column, then EVERYTHING will be 
considered a candidate for killing.

A better way might be the "?" character.

EMail address modified to bypass bulk EMailers. Reply to: miketoth@mc.net

Learn how to get the spammers, and junk EMailers, back.
Go to: http://user.mc.net/miketoth/index.html
Excellent collection of links/URLs and other items so YOU can help in the
fight of net abuse!

Now: News Xpress "KILLRC" file.

P.S. to junk EMailers: If you send me junk EMail, and say you've seen my 
post(s), you're in for a WORLD of HURT!!!!!

Re: NX - kill $ signs
#28129
Author: Xriva Znegva
Date: Fri, 06 Dec 1996 00:00
45 lines
2215 bytes
In article <5871pp$i8_002@miketoth.mc.net>,
   tothmike@mc.net (Spaminator) wrote:

> So, you have to be VERY careful with the "$". It's like 
> the "*" in DOS/Unix. 

No it isn't!  NO, NO, NO!  It indicates THE END OF THE STRING.

Wombat$   means "Wombat as the last thing on the line."
^Wombat   means "Wombat as the first thing on the line."
^Wombat$  means "Wombat is the ONLY thing on the line"
       because it's anchored at both the head and the tail.

This gives you the flexibility to pick and choose between:

 "Wombats are an important natural resource" and
 "I once had carnal knowledge of a Wombat"

..even though they both contain the identical substring 
"Wombat".

The problem is that if you put a $ at the start of your
test, you're testing for "any line that has an end" -- which
means you match every possible line.  THAT's why it appears
that the dollar sign is acting like a wildcard.

The answer to the original poster's problem -- which you
actually quoted, for Valen's sake! -- is that you have to 
"escape" the dollar sign with a backslash to take away
its special meaning as an anchor.

If you say \$* the backslash makes the dollar sign a literal
thing to be matched, and it's the * that means "any number of 
them."  Killing \$\$\$ will kill based on the presence of 
exactly three dollar signs.  A plain, un-escaped dollar sign
should only appear as the LAST thing in the expression, because
that's the only place it makes any sense.

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Re: NX - kill $ signs
#28240
Author: Peter Tatiner
Date: Mon, 09 Dec 1996 00:00
68 lines
2957 bytes
In article <589t7e$ot2@spruce.citicorp.com>,
   pnaaba@avp.pbz (Xriva Znegva) wrote:
>Path: 
news.ifu.net!imci5!newsfeed.internetmci.com!tezcat!news.bbnplane
t.com!cam-news-hub1.bbnplanet.com!uunet!in2.uu.net!192.193.195.1
94!citicorp.com!martinpc
>From: pnaaba@avp.pbz (Xriva Znegva)
>Newsgroups: news.software.readers
>Subject: Re: NX - kill $ signs
>Date: Fri, 06 Dec 96 19:45:59 GMT
>Organization: See my .sig
>Lines: 42
>Distribution: citi
>Message-ID: <589t7e$ot2@spruce.citicorp.com>
>References: <582nbv$95r$3@nic.ott.hookup.net> 
<5871pp$i8_002@miketoth.mc.net>
>NNTP-Posting-Host: martinpc.cfs.citicorp.com
>X-Newsreader: News Xpress Version 1.0 Beta #4
>Status: N
>
>In article <5871pp$i8_002@miketoth.mc.net>,
>   tothmike@mc.net (Spaminator) wrote:
>
>> So, you have to be VERY careful with the "$". It's like 
>> the "*" in DOS/Unix. 
>
>No it isn't!  NO, NO, NO!  It indicates THE END OF THE STRING.
>
>Wombat$   means "Wombat as the last thing on the line."
>^Wombat   means "Wombat as the first thing on the line."
>^Wombat$  means "Wombat is the ONLY thing on the line"
>       because it's anchored at both the head and the tail.
>
>This gives you the flexibility to pick and choose between:
>
> "Wombats are an important natural resource" and
> "I once had carnal knowledge of a Wombat"
>
>...even though they both contain the identical substring 
>"Wombat".
>
>The problem is that if you put a $ at the start of your
>test, you're testing for "any line that has an end" -- which
>means you match every possible line.  THAT's why it appears
>that the dollar sign is acting like a wildcard.
>
>The answer to the original poster's problem -- which you
>actually quoted, for Valen's sake! -- is that you have to 
>"escape" the dollar sign with a backslash to take away
>its special meaning as an anchor.
>
>If you say \$* the backslash makes the dollar sign a literal
>thing to be matched, and it's the * that means "any number of 
>them."  Killing \$\$\$ will kill based on the presence of 
>exactly three dollar signs.  A plain, un-escaped dollar sign
>should only appear as the LAST thing in the expression, because

So you're saying that if we key <\$\$\$> we'll kill any post 
with 3 $ signs in it, but not, say, one with 2 or more than 4?

Thanks.


Cheers,
tatiner@ifu.net

Re: NX - kill $ signs
#28288
Author: Xriva Znegva
Date: Tue, 10 Dec 1996 00:00
35 lines
1944 bytes
In article <58i527$s54@news.ifu.net>,
   tatiner@ifu.net (Peter Tatiner) wrote:

> [Quoting me]
>>If you say \$* the backslash makes the dollar sign a literal
>>thing to be matched, and it's the * that means "any number of 
>>them."  Killing \$\$\$ will kill based on the presence of 
>>exactly three dollar signs.

>So you're saying that if we key <\$\$\$> we'll kill any post 
>with 3 $ signs in it, but not, say, one with 2 or more than 4?

Not exactly.  It won't kill 2, because it's looking for three
in a row.  It WILL kill 4 or more, because you didn't terminate
the test.  It gets tricky at this point, because I don't know 
for sure how elaborate the "regular expression" engine in 
NX 2.0 is.  Specifically, I don't know if it understands that 
\b means a word boundary or \s means a space.

If this were Perl, then you could limit it to "three dollar 
signs and no more."  Something like \b\$*{3}\b maybe?

(I am only an egg and do not grok Perl in fullness.)

Anyway, since we've squared away the issue of "How do I search 
for a literal dollar sign?" perhaps we should quit while we're 
ahead?  :-)

-- 

Kevin Martin <pnaaba@avp.pbz>  V trg znvyfcnzzref' nppbhagf lnaxrq!
             ROT13 the above to get my reply address

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads