🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240654

Re: Xnews score file / regex help request

#240654
From: Mike Dee
Date: Sun, 02 May 2010 03:08
39 lines
2773 bytes
Zars <azoblue@myrealbox.DOTcom> wrote:

[...] 
> Anyway, what I would like is a filter that kills the dollar sign - 
> $ - anywhere in a subject, either by itself, or part of a price, or 
> part of any other string, regardless of whether it appears once or 
> multiple times.
> 
> I know in regex the dollar sign is a special character, but this, 
> as far as I can tell, does absolutely nothing, and I don't know 
> why:
> 
> Subject: \$

I am assuming that you have at least a "Score: -9999" in there 
somewhere and have your score entered under an appropriate hierarchy?

For example:

[.]

Score: -9999
 Subject: \$

If you haven't come across it yet, you can test regex patterns before 
you put them to use in the Xnews regex tester ("Special" menu, "Test 
Regex" submenu).

Enter the regex in the Pattern field such as: \$, enter a string to 
test it against in the "Test string" field, such as: make big $$$$ now! 
and click the "Match" button to see what happens. Either you'll get a 
match or not. My results for \$ matched on the first $ it found in the 
string.

Anyway, scoring on Subject: \$ works for me, so I suspect its what you 
have (or haven't) entered into Score.ini before your score runs. 

-- 
dee
Technical Details
Message-ID: <Xns9D6C85B50506Demteedee@212.227.158.24>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!212.227.158.24.MISMATCH!weretis.net!feeder3.news.weretis.net!news.solani.org!not-for-mail
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9D6C85B50506Demteedee@212.227.158.24>
Subject: Re: Xnews score file / regex help request
Date: Sun, 02 May 2010 03:08:52 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.ecngs.de!ecngs!feeder2.ecngs.de!212.227.158.24.MISMATCH!weretis.net!feeder3.news.weretis.net!news.solani.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 39
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: solani.org 1272769732 23430
 eJwNysEBwCAIA8CVREiAccDi/iPYex+UwuNG0HBxqykevVR6hZ6OjSkb33+TrIHwNsiw/LoiHxCZEKY=
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Sun, 2 May 2010 03:08:52 +0000 (UTC)
X-User-ID: eJwFwYEBwCAIA7CXptCC52AH/59gAuOiwgk6BnPrwGh5EyF6KN3+7hoWHBLLjvYXW2wsrwcaoxEK
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
Cancel-Lock: sha1:Ns9Zfa8EDJCOTc06A5U/uKRhKTs=
User-Agent: Xnews/2006.08.24
X-NNTP-Posting-Host: eJwNysEBwCAIA8CVQAnCOAhm/xHaex+2q/cxhxsIEivEQc1wDO7rVPMtla2nZnZNxf/DSNZjhq02Sl/gFfUDUmkWMw==