🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219255

Re: [Xnews] Regex to detect long subject lines

#219255
From: Mike Dee
Date: Tue, 15 Apr 2008 06:48
48 lines
3689 bytes
Blinky the Shark <no.spam@box.invalid> wrote:

> Mike Dee wrote:
>   
>> From the Xnews manual, under the section on Regular Expression:
>> 
>> 3) Quantifiers (match how many times)
>> 
>>    *     Match 0 or more times
>>    +     Match 1 or more times
>>    ?     Match 1 or 0 time (i.e., optionally match) {n}   Match
>>    exactly n times
>>    {n,}  Match at least n times
>>    {n,m} Match at least n but not more than m times
> 
> I *think* that's PCRE; I dunno if that's coincidental (if I'm
> right) because I dunno if Xnews is totally compatible.

>From the Xnews manual:
----------------
Xnews uses Philip Hazel's PCRE (Perl Compatible Regular Expression) 
package, adapted for Delphi by yours truly.
----------------

So I would assume that Xnews's PCRE is compatible with Phillip Hazel's 
version of it (much of it being compatible with other PCRE out there, 
but there may be some variences and incompatibilities with say, SLRN 
and others).

However, the given quantifiers above are indentical to the PCRE at 
perl.com <http://www.perl.com/doc/manual/html/pod/perlre.html> under 
the sub-heading "The following standard quantifiers are recognized:".

The OP perhaps should've put Xnews/Hamster in the subject header too, 
as he was posting using Xnews over Hamster... perhaps he wanted this 
for Hamster and not Xnews, I dunno he wasn't clear on that. But if he's 
running Hamster he'll be bright enough to work it out I would guess.

Afterthought: The actual Xnews script I gave was "greedy", it would be 
less greedy with the addition of a trailing "?", as in:

[.]

    Score: -100
      Subject: .{60,}? 

-- 
dee
Technical Details
Message-ID: <Xns9A81AB017F381emteedee@193.201.53.67>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!newsfeed.datemas.de!news.datemas.de!not-for-mail
References: <Xns9A808EE42A7682362352@127.0.0.1> <Xns9A816D4A1C13Bemteedee@193.201.53.67> <pan.2008.04.15.04.44.40.130227@thurston.blinkynet.net>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9A81AB017F381emteedee@193.201.53.67>
Subject: Re: [Xnews] Regex to detect long subject lines
Date: Tue, 15 Apr 2008 06:48:43 +0000
From: Mike Dee <emteedee@invalid.invalid>
References: <Xns9A808EE42A7682362352@127.0.0.1> <Xns9A816D4A1C13Bemteedee@193.201.53.67> <pan.2008.04.15.04.44.40.130227@thurston.blinkynet.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!newsfeed.datemas.de!news.datemas.de!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 48
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: news.datemas.de
 w1fg8S4dnAhngNCSPucsYvefgvgdibCaoQBYnng3UXsjjvk7jTLL+XWW6HFWr3Kuack29wuvA+AzPeavvmyoOulumOX0EUsNplaGIMrlx7krgmOqWlmil5iZ71WPCE/Id1SmxDK4QGRICDq1rJmegLAxZMWLediF05UxG37KqqM=
X-Complaints-To: abuse@datemas.de
NNTP-Posting-Date: Tue, 15 Apr 2008 06:48:43 +0000 (UTC)
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAA1eFXgkmf71L/7
 7qX////6Pj40AAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1wMdBh4ZkpuYCAAAAPlJREFU
 eNqV0s2RwyAMBeAXQ+5xB4wq8AwNcHABuWz/rQRJ/AhssrtcPKPPegJjnIuF+vQrwC/QOidIK8AM
 6Qv4W0ADXADaeAO56RZijAeu4GIsMoHU47XDdfAWUlyAjHY6YwKXa+4KZYTsy0JyHFPFQjQdIxxo
 NESh1ccDJmeyzvsZX8D/CWBkAPkedV+LqBl6WPlYBdCOeFiAhdABBg4EvXiGLcj16QQivd8MiaHW
 N6JQARTaIXK9w8bdZQDxkiEKpP8uB00Q8JPXW+qahTPJS69nBk2SlgzS8DBJFrA/e5JkeSTe+WO3
 SdySgd/YGd4b9ZYBaIB/rw/aM8iUyl6QnQAAAABJRU5ErkJggg==
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
User-Agent: Xnews/2006.08.24