Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Comm > Re: MT-Newswatc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 15 Topic 2876 of 3031
Post > Topic >>

Re: MT-Newswatcher Filtering question

by Jolly Roger <jollyroger@[EMAIL PROTECTED] > Feb 5, 2008 at 05:29 AM

In article <megadethguy-897E7B.21062904022008@[EMAIL PROTECTED]
>,
 Megadave <megadethguy@[EMAIL PROTECTED]
> 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
 




 15 Posts in Topic:
MT-Newswatcher Filtering question
Megadave <megadethguy@  2008-02-04 21:06:29 
Re: MT-Newswatcher Filtering question
Barry Margolin <barmar  2008-02-05 01:01:19 
Private Message
   2008-02-05 00:32:19 
Private Message
   2008-02-05 18:37:31 
Re: MT-Newswatcher Filtering question
Jolly Roger <jollyroge  2008-02-05 05:29:19 
Re: MT-Newswatcher Filtering question
Megadave <megadethguy@  2008-02-05 18:39:17 
Re: MT-Newswatcher Filtering question
Jolly Roger <jollyroge  2008-02-05 20:56:40 
Re: MT-Newswatcher Filtering question
Jolly Roger <jollyroge  2008-02-05 21:01:22 
Re: MT-Newswatcher Filtering question
Clark Martin <cmnews@[  2008-02-05 18:56:47 
Re: MT-Newswatcher Filtering question
Jolly Roger <jollyroge  2008-02-05 21:03:39 
Re: MT-Newswatcher Filtering question
Megadave <megadethguy@  2008-02-05 21:02:25 
Re: MT-Newswatcher Filtering question
Warren Oates <warren.o  2008-02-06 09:35:00 
Re: MT-Newswatcher Filtering question
Jolly Roger <jollyroge  2008-02-06 11:14:59 
Re: MT-Newswatcher Filtering question
Megadave <megadethguy@  2008-02-06 23:19:24 
Re: MT-Newswatcher Filtering question
Howard S Shubs <howard  2008-02-09 23:05:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 18:34:49 CDT 2008.