
Signature
So now you know the words to our song, pretty soon you'll all be
singing along, when you're sad, when you're lonely and it all
turns out wrong...
Kickboxing. Sport of the future.
>>> I need a filter to kill messages whose "From" contains TBR (in all caps)
>>> with any number (including zero) of other alpha-numerics between TB
>>> and/or BR.
>> You mean like this?:
>> From matches regular expression: [TB.*R|T.*BR]
> That will match "TB is a terrible disease, Roger" and "This message is for BRAD"
> TB[0-9]+R|T[0-9]+BR
> You might want to anchor it against an @ sign if this is the user portion, but
> that regex is unlikely to match false positives
Sorry, reread what you said and this will only match if there IS a digit.
So
TB[0-9]*R|T[0-9]*BR
I would think that the "MI5" filter of M[^I]*I[^5]*5 would be too
risky as it would match user names like marie501 (I think MT does
case-insensitive regex by default, like TW and BBedit, right?)

Signature
"You're an elf and you're going to wear panties like an elf." --
David Sedaris, Santaland Diaries
Tom Stiller - 23 May 2008 17:16 GMT
> >>> I need a filter to kill messages whose "From" contains TBR (in all caps)
> >>> with any number (including zero) of other alpha-numerics between TB
[quoted text clipped - 22 lines]
> risky as it would match user names like marie501 (I think MT does
> case-insensitive regex by default, like TW and BBedit, right?)
You misread the OP. Your proposed expression is malformed; the stated
search target could contain zero or more other alpha-numerics between TB
and/or BR.
A search like T[^B]*B[^R]*R satisfies that requirement.

Signature
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
Michelle Steiner - 23 May 2008 17:18 GMT
> > TB[0-9]+R|T[0-9]+BR
>
[quoted text clipped - 7 lines]
>
> TB[0-9]*R|T[0-9]*BR
Well, I already had a filter for "TBR", and kept it in, so the first one
used in conjunction with that would work, right?

Signature
Support the troops: Bring them home ASAP.