In article
<jollyroger-56A592.05291905022008@[EMAIL PROTECTED]
>,
Jolly Roger <jollyroger@[EMAIL PROTECTED]
> wrote:
> 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])
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"


|