🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Nick Andriash Thu, 20 Jan 2000 00:00
Score File Help
#56952
Author: Nick Andriash
Date: Thu, 20 Jan 2000 00:00
25 lines
1349 bytes
-- 
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


---
-=N.J.(Nick) Andriash=-
MailTo:andriash@NOSPAMhome.com
MailTo:coastline-airconditioning@NOSPAMhome.com
PGP Keys available from KeyServers
---

Re: Score File Help
#56943
Author: 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 ?

Re: Score File Help
#56950
Author: scooter
Date: Thu, 20 Jan 2000 00:00
34 lines
1716 bytes
andriash@canada.com (Nick Andriash) wrote in 
<8EC0ACB25Andriash@24.2.10.79>:

>On Wed 19 Jan 2000 04:48:00p, scooter wrote:
>
>>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"
>
>Thanks Scooter... I'm new at this type of thing, and just need more time 
>with the syntax... it's a little misleading and takes some time to get 
>used to. You have to admit, that for the uninitiated, "Zero width 
>assertion" is confusing at best. :o)
>
>Appreciate the help.
>
>Nick

Agreed.  I have to admit I don't really use scoring much.  I had to look 
that up in order to give you a possible solution (so you better test it!).

Hope it works.

Re: Score File Help
#56959
Author: John E. Davis
Date: Thu, 20 Jan 2000 00:00
14 lines
832 bytes
On Thu, 20 Jan 2000 00:06:25 GMT, Nick Andriash <andriash@canada.com>
>[.]
>score: -9999
>subject: TIN

Use:

   [*]
   Score: -9999
   Subject: \<TIN\>

--John

Re: Score File Help
#56961
Author: Nick Andriash
Date: Thu, 20 Jan 2000 00:00
34 lines
1579 bytes
On Wed 19 Jan 2000 04:48:00p, scooter wrote:

>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"

Thanks Scooter... I'm new at this type of thing, and just need more time 
with the syntax... it's a little misleading and takes some time to get 
used to. You have to admit, that for the uninitiated, "Zero width 
assertion" is confusing at best. :o)

Appreciate the help.

Nick
-- 

---
-=N.J.(Nick) Andriash=-
MailTo:andriash@NOSPAMhome.com
MailTo:coastline-airconditioning@NOSPAMhome.com
PGP Keys available from KeyServers
---

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