🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56943

Re: Score File Help

#56943
From: scooter
Date: Thu, 20 Jan 2000 00:00
44 lines
1896 bytes
andriash@canada.com (Nick Andriash) wrote in <8EC0A3961Andriash@24.2.10.79>:

>I'm trying to edit my score.ini file so that I hard kill any message with 
>"TIN" in the subject. Currently, it looks like this:
>
>[.]
>score: -9999
>subject: TIN
>
>The problem though, is it picks up _any_ word in the subject that has 
>those 3 letters in a row, such as "crossposting. What I would like or 
>course, is for it to pick up just those 3 letters by themselves, i.e. 
>TIN, and tin (lower case), but I'm not sure how to specifiy just that one 
>word. Thanks for your help.
>
>Nick
>
>
>
From the manual:

5) Zero width assertion 

A fancy way of saying a true condition that doesn't actually match or consume a 
character. 

    \b   Match a word boundary
    \B   Match a non-(word boundary)
Example 

	\bfoot
thematch "footer" "footing" "a foot" but not "afoot"
	foot\b
		match "afoot" and "foot." (period doesn't count as part of word)
		but not "footing"
	\bfoot\b
		match the whole word foot
	foot\B
		match "footer" but not "foot;"  i.e., there's got to be something
		after foot that is part of a word

So how about /btin/b ?

Technical Details
Message-ID: <8EC0C79A64392412scooter@24.128.44.7>
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: <8EC0A3961Andriash@24.2.10.79>

Show Full Headers
Complete Article Headers
Message-ID: <8EC0C79A64392412scooter@24.128.44.7>
Subject: Re: Score File Help
Date: Thu, 20 Jan 2000 00:00:00 +0000
From: noway@noway.com (scooter)
References: <8EC0A3961Andriash@24.2.10.79>
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: 574934800
X-Complaints-To: abuse@mediaone.net
X-Trace: wbnws01.ne.mediaone.net 948329280 24.128.140.126 (Wed, 19 Jan 2000 19:48:00 EST)
Organization: Road Runner
User-Agent: Xnews/Y2K-SE
NNTP-Posting-Date: Wed, 19 Jan 2000 19:48:00 EST
Newsgroups: news.software.readers