🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #73852

[XNews - Regexp] Scoring down caps-only From:

#73852
From: Arve Bersvendsen
Date: Sun, 18 Mar 2001 23:26
44 lines
2242 bytes
I have for some time tried to create a regular expression for scoring 
down people who have their name in all-caps, and I have failed to find 
a regular expression that will pick postings where the Name-part is all 
caps.

One of the Regular Expressions I tried was this:

.*[a-z].*(?=\<)|.*[a-z].*(?=\()

In the Regex Test I tested against the following string

LOOSER (looser@fwewqemail.com) 
    	No Match
Fine User (looser@fwewqemail.com) 
    	Match  00) Fine User
"Fine User" <fine@fwewqemail.com> 
    	Match  00) "Fine User"
Fine User <fine@fwewqemail.com> 
    	Match  00) "Fine User"
"USER LOOSER" <fine@fwewqemail.com>
    	No match
USER LOOSER <fine@fwewqemail.com>
    	No match

Which made me believe I could use the following score-entry

%CAPSLOOSER
Score:: -500
    ~From=.*[a-z].*(?=\<)
    ~From=.*[a-z].*(?=\()

Not one article matched any of the two regular expressions, which means 
all articles were scored down.

I'm not sure whether this is due to a bug in PCRE, XNews, or a bug in 
my RegExp.

HELP!

-- 
Arve                         \ /         �Your depression 
                              X   will be added to my own�
http://www.bersvendsen.com/  / \         - Marvin of Borg
Technical Details
Message-ID: <Xns906944897851maddogonlineno@news.online.no>
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!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!news.tele.dk!148.122.208.68!news2.oke.nextra.no!nextra.com!news1.oke.nextra.no.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <Xns906944897851maddogonlineno@news.online.no>
Subject: [XNews - Regexp] Scoring down caps-only From:
Date: Sun, 18 Mar 2001 23:26:29 GMT
From: arve.news@bersvendsen.com (Arve Bersvendsen)
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!supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!news.tele.dk!148.122.208.68!news2.oke.nextra.no!nextra.com!news1.oke.nextra.no.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Privat
User-Agent: Xnews/4.03.17
Lines: 43
NNTP-Posting-Host: 130.67.101.147
X-Complaints-To: news-abuse@nextra.no
X-Trace: news1.oke.nextra.no 984957989 130.67.101.147 (Mon, 19 Mar 2001 00:26:29 MET)
NNTP-Posting-Date: Mon, 19 Mar 2001 00:26:29 MET