🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Rob Stow Sat, 24 Apr 2004 21:34
[XNews] Regex help wanted for scoring
#147023
Author: Rob Stow
Date: Sat, 24 Apr 2004 21:34
18 lines
1658 bytes
Something I do a LOT in my score file is this:

Score: 1234
Subject: JoeJackson|Joe.Jackson|JacksonJoe|Jackson.Joe

In other words, I want to score on the basic of two
words, in either order, separated by either nothing or
by a single character.  Typically the words are the
first and last name of someone.

For example, I might want to score every article with
a variant on "Joe Jackson" in the subject, without also
getting crap like "Attn Joe: your Micheal Jackson request".

There has got to be an easier way to do this other than
by typing it out in the "XXXyyy|XXX.yyy|yyyXXX|yyy.XXX"
format every freaking time.
Re: [XNews] Regex help wanted for scoring
#147026
Author: »Q«
Date: Sat, 24 Apr 2004 21:47
14 lines
1631 bytes
Rob Stow <rob.stow@sasktel.net> wrote in <news:108lmqcdbal20d9
@corp.supernews.com>:

> Score: 1234
> Subject: JoeJackson|Joe.Jackson|JacksonJoe|Jackson.Joe
>
> In other words, I want to score on the basic of two
> words, in either order, separated by either nothing or
> by a single character.

Subject: Joe.?Jackson|Jackson.?Joe

-- 
»Q«
Re: [XNews] Regex help wanted for scoring
#147039
Author: Rob Stow
Date: Sun, 25 Apr 2004 02:23
20 lines
1685 bytes
»Q« wrote:

> Rob Stow <rob.stow@sasktel.net> wrote in <news:108lmqcdbal20d9
> @corp.supernews.com>:
> 
> 
>>Score: 1234
>>Subject: JoeJackson|Joe.Jackson|JacksonJoe|Jackson.Joe
>>
>>In other words, I want to score on the basic of two
>>words, in either order, separated by either nothing or
>>by a single character.
> 
> 
> Subject: Joe.?Jackson|Jackson.?Joe
> 

Thanks - it is a big improvement over the way I was doing things.

Rob
Re: [XNews] Regex help wanted for scoring
#147073
Author: Tech Zero
Date: Sun, 25 Apr 2004 20:10
26 lines
1877 bytes
The voice of "Rob Stow" drifted in on the cyber-winds,
from the sea of virtual chaos...

> »Q« wrote:
> 
>> Rob Stow <rob.stow@sasktel.net> wrote in <news:108lmqcdbal20d9
>> @corp.supernews.com>:
>> 
>>> Score: 1234
>>> Subject: JoeJackson|Joe.Jackson|JacksonJoe|Jackson.Joe
>>> 
>>> In other words, I want to score on the basic of two
>>> words, in either order, separated by either nothing or
>>> by a single character.
>> 
>> Subject: Joe.?Jackson|Jackson.?Joe
> 
> Thanks - it is a big improvement over the way I was doing things.


For more examples, check out:

   http://www.dragonfur.ca/nowhere/score.ini.txt

-- 
The Tech Zero, Maxx Pollare - Playing with Dnews filters...
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