Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

MT-Newswatcher Filtering question

 
   Macintosh computer (Home) -> Comm RSS
Next:  [ANN] NetFinder F3.0  
Author Message
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 1) Posted: Mon Feb 04, 2008 9:06 pm
Post subject: MT-Newswatcher Filtering question
Imported from groups: comp>sys>mac>comm (more info?)

This message is not archived

 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 3627



(Msg. 2) Posted: Tue Feb 05, 2008 12:32 am
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Barry Margolin

External


Since: Feb 18, 2004
Posts: 1124



(Msg. 3) Posted: Tue Feb 05, 2008 1:01 am
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Megadave wrote:

> I want to filter out on a given combination of letters - regardless of
> how those specific letter appear from an author.
>
> For example: FOOBAR and FBRAOO should both generate a hit.
>
> Any thoughts? I personally don't think this is possible but I figured
> I'd ask.

I don't think so, either, other than listing all the permutations:

FOOBAR|OFOBAR|OOFBAR|OOBFAR|OOBAFR|OOBARF|FOBOAR|OFBOAR|...

There might be some way to simplify this, but it will still be really
long.

What are you trying to achieve with this? Maybe there's a better way to
approach it.

--
Barry Margolin, barmar RemoveThis @alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 4) Posted: Tue Feb 05, 2008 5:29 am
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Megadave wrote:

> I want to filter out on a given combination of letters - regardless of
> how those specific letter appear from an author.
>
> For example: FOOBAR and FBRAOO should both generate a hit.
>
> Any thoughts? I personally don't think this is possible but I figured
> I'd ask.

With MT-NewsWatcher, the initial or obvious solution is to use regular
expressions. Unfortunately, and regular expressions is not the right
tool for the job of matching a list of characters in any order.

You'd need to create a rather complex and lengthy regular expression.
Basically, you need to list every possible combination of characters in
the regular expression string. For instance, here's a regular expression
that matches every string containing all of 'a', 'b', and 'c' in any
order:

([^aA][aA][^bB][bB][^cC][cC])|([^aA][aA][^cC][cC][^bB][bB])|([^bB][bB][^a
A][aA][^cC][cC])|([^bB][bB][^cC][cC][^aA][aA])|([^cC][cC][^aA][aA][^bB][b
B])|([^cC][cC][^bB][bB][^aA][aA])

As you can see, this will get exponentially more complex the more
characters you want to match. So it is possible, but it's not easy, and
may not be worth the trouble.

If you can explain more about what you are trying to do, we may be able
to help you think of a better solution.

--
Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 5) Posted: Tue Feb 05, 2008 6:37 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 6) Posted: Tue Feb 05, 2008 6:39 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Clark Martin

External


Since: Jul 27, 2003
Posts: 326



(Msg. 7) Posted: Tue Feb 05, 2008 6:56 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jolly Roger wrote:

> In article ,
> Megadave wrote:
>
> > I want to filter out on a given combination of letters - regardless of
> > how those specific letter appear from an author.
> >
> > For example: FOOBAR and FBRAOO should both generate a hit.
> >
> > Any thoughts? I personally don't think this is possible but I figured
> > I'd ask.
>
> With MT-NewsWatcher, the initial or obvious solution is to use regular
> expressions. Unfortunately, and regular expressions is not the right
> tool for the job of matching a list of characters in any order.
>
> You'd need to create a rather complex and lengthy regular expression.
> Basically, you need to list every possible combination of characters in
> the regular expression string. For instance, here's a regular expression
> that matches every string containing all of 'a', 'b', and 'c' in any
> order:
>
> ([^aA][aA][^bB][bB][^cC][cC])|([^aA][aA][^cC][cC][^bB][bB])|([^bB][bB][^a
> A][aA][^cC][cC])|([^bB][bB][^cC][cC][^aA][aA])|([^cC][cC][^aA][aA][^bB][b
> B])|([^cC][cC][^bB][bB][^aA][aA])

You could use this regular expression though:

[ABFOR][ABFOR][ABFOR][ABFOR][ABFOR][ABFOR]

It will catch any combination of those letters but in any number, not
limited to the one or two of FOOBAR. It may be enough, depending.

--
Clark Martin
Redwood City, CA, USA Macintosh / Internet Consulting

"I'm a designated driver on the Information Super Highway"
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 8) Posted: Tue Feb 05, 2008 8:56 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Megadave wrote:

> In article
> ,
> Jolly Roger wrote:
>
> > If you can explain more about what you are trying to do, we may be able
> > to help you think of a better solution.
>
> Oh it's just a couple of the more useless twats over in c.s.m.advocacy
> post using scrambled variations on their handles.

These easiest way to deal with them is to simply unsubscribe from that
group and kill all posts with the group in the headers. ; ) Works
fantastic!

--
Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 9) Posted: Tue Feb 05, 2008 9:01 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Megadave wrote:

> Oh it's just a couple of the more useless twats over in c.s.m.advocacy
> post using scrambled variations on their handles.. Of course I use a
> 'mental bitbucket' but I started to wonder if it was even possible to do
> such a filter.

A majority of the jackasses in CSMA are Windows users who post with
Windows news readers (X-NewsReader and User-Agent headers), and you can
further narrow things down by filtering the Message-ID and From headers.
You just need to get a little creative with scoring to get it working
just right. ; )

--
Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 10) Posted: Tue Feb 05, 2008 9:02 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 11) Posted: Tue Feb 05, 2008 9:03 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Clark Martin wrote:

> In article
> ,
> Jolly Roger wrote:
>
> > In article ,
> > Megadave wrote:
> >
> > > I want to filter out on a given combination of letters - regardless of
> > > how those specific letter appear from an author.
> > >
> > > For example: FOOBAR and FBRAOO should both generate a hit.
> > >
> > > Any thoughts? I personally don't think this is possible but I figured
> > > I'd ask.
> >
> > With MT-NewsWatcher, the initial or obvious solution is to use regular
> > expressions. Unfortunately, and regular expressions is not the right
> > tool for the job of matching a list of characters in any order.
> >
> > You'd need to create a rather complex and lengthy regular expression.
> > Basically, you need to list every possible combination of characters in
> > the regular expression string. For instance, here's a regular expression
> > that matches every string containing all of 'a', 'b', and 'c' in any
> > order:
> >
> > ([^aA][aA][^bB][bB][^cC][cC])|([^aA][aA][^cC][cC][^bB][bB])|([^bB][bB][^a
> > A][aA][^cC][cC])|([^bB][bB][^cC][cC][^aA][aA])|([^cC][cC][^aA][aA][^bB][b
> > B])|([^cC][cC][^bB][bB][^aA][aA])
>
> You could use this regular expression though:
>
> [ABFOR][ABFOR][ABFOR][ABFOR][ABFOR][ABFOR]
>
> It will catch any combination of those letters but in any number, not
> limited to the one or two of FOOBAR. It may be enough, depending.

That's a nice alternative, actually. Good work.

--
Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Warren Oates

External


Since: Nov 16, 2005
Posts: 909



(Msg. 12) Posted: Wed Feb 06, 2008 9:35 am
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Clark Martin wrote:

> You could use this regular expression though:
>
> [ABFOR][ABFOR][ABFOR][ABFOR][ABFOR][ABFOR]
>
> It will catch any combination of those letters but in any number, not
> limited to the one or two of FOOBAR. It may be enough, depending.

Cute. What about

[ABFOR]{6}
--
W. Oates
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 1943



(Msg. 13) Posted: Wed Feb 06, 2008 11:14 am
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Warren Oates wrote:

> In article ,
> Clark Martin wrote:
>
> > You could use this regular expression though:
> >
> > [ABFOR][ABFOR][ABFOR][ABFOR][ABFOR][ABFOR]
> >
> > It will catch any combination of those letters but in any number, not
> > limited to the one or two of FOOBAR. It may be enough, depending.
>
> Cute. What about
>
> [ABFOR]{6}

And we have a winner! : )

--
Note: Please send all responses to the relevant news group. If you
must contact me through e-mail, let me know when you send email to
this address so that your email doesn't get eaten by my SPAM filter.

JR
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 14) Posted: Wed Feb 06, 2008 11:19 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Howard S Shubs

External


Since: Aug 02, 2003
Posts: 463



(Msg. 15) Posted: Sat Feb 09, 2008 11:05 pm
Post subject: Re: MT-Newswatcher Filtering question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Warren Oates wrote:

> Cute. What about
>
> [ABFOR]{6}

From very nasty to nicely concise! Very good.

--
While its true that "you can't fix stupid", apparently you
can package it up and sell it. -- fnorgby on TMBO
 >> Stay informed about: MT-Newswatcher Filtering question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Thoth filtering question - Is there a way that Thoth filters can be set up to filter out ALL cross-posted messages to a particular newsgroup? Gerry

MT-NewsWatcher 3.5.3b1 available -

MT-NewsWatcher 3.5.3b2 available -

MT-Newswatcher feature request - When I open a filter window in the filters list, I can see : This filter has been used x times since xx/xx/xx (the creation date). It would be great to know which date the filter has been used for the last time. So it would be easiest to clean up..

help: MT-Newswatcher shows group counts, but does not down.. - Sorry for using a google account - I cannot post currently with MT- Newswatcher using my usual server. I have a strange problem: Since this evening MT-Newswatcher shows group counts in group window, but when I press return with groups selected, there is...
   Macintosh computer (Home) -> Comm All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]