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


|