Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / Networking / May 2008



Tip: Looking for answers? Try searching our database.

MT NW filter help, please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michelle Steiner - 21 May 2008 20:46 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
and/or BR.

Signature

Support the troops:  Bring them home ASAP.

Jolly Roger - 21 May 2008 21:03 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
> and/or BR.

You mean like this?:

    From matches regular expression: [TB.*R|T.*BR]

Signature

Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR

Michelle Steiner - 21 May 2008 21:20 GMT
> You mean like this?:
>
>      From matches regular expression: [TB.*R|T.*BR]

If I knew, I wouldn't have had to ask.

Thanks.

Signature

Support the troops:  Bring them home ASAP.

Jolly Roger - 21 May 2008 21:46 GMT
> > You mean like this?:
> >
[quoted text clipped - 3 lines]
>
> Thanks.

To find out, open TextWrangler, type the variations you want to match
into a new blank document, then do a search for that regular expression
and see what matches.  

I didn't bother to test it - I'll leave that as an exercise for you.  ; )

Signature

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

Michelle Steiner - 21 May 2008 23:27 GMT
> > >      From matches regular expression: [TB.*R|T.*BR]
> >
[quoted text clipped - 5 lines]
> into a new blank document, then do a search for that regular
> expression and see what matches.  

OK, but I didn't know where to begin in the first place.

Signature

Support the troops:  Bring them home ASAP.

Jolly Roger - 22 May 2008 02:24 GMT
> > > >      From matches regular expression: [TB.*R|T.*BR]
> > >
[quoted text clipped - 7 lines]
>
> OK, but I didn't know where to begin in the first place.

Read the regular expressions chapter of the TextWrangler manual.

Signature

Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR

Gregory Weston - 21 May 2008 21:55 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 - 3 lines]
>
>      From matches regular expression: [TB.*R|T.*BR]

That only covers the 'or' part of 'and/or' ... T.*B.*R would also be a
valid match for what Michelle described.

Signature

"Harry?" Ron's voice was a mere whisper. "Do you smell something ... burning?"
  - Harry Potter and the Odor of the Phoenix

Jolly Roger - 21 May 2008 23:08 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 - 6 lines]
> That only covers the 'or' part of 'and/or' ... T.*B.*R would also be a
> valid match for what Michelle described.

Good catch.  : )

Signature

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

Michelle Steiner - 21 May 2008 23:26 GMT
> >      From matches regular expression: [TB.*R|T.*BR]
>
> That only covers the 'or' part of 'and/or' ... T.*B.*R would also be
> a valid match for what Michelle described.

Would they have to be in brackets like JR's suggestion?

Signature

Support the troops:  Bring them home ASAP.

Jolly Roger - 22 May 2008 02:25 GMT
> > >      From matches regular expression: [TB.*R|T.*BR]
> >
> > That only covers the 'or' part of 'and/or' ... T.*B.*R would also be
> > a valid match for what Michelle described.
>
> Would they have to be in brackets like JR's suggestion?

No, not T.*B.*R.

Signature

Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR

Lewis - 23 May 2008 16:47 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
>> 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

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.

Lewis - 23 May 2008 16:54 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
>>> 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.

Warren Oates - 22 May 2008 13:55 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
> and/or BR.

What are you using for the MI5 guy? Same thing should work with TBR. I'd
post mine, but it doesn't look quite right for some reason, and I'm a
bit too under-it-all to play with regexes this morning.
Signature

W. Oates

Michelle Steiner - 22 May 2008 14:07 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 and/or BR.
>
> What are you using for the MI5 guy? Same thing should work with TBR.

You're right; thanks.  I'm using M[^I]*I[^5]*5

Signature

Support the troops:  Bring them home ASAP.

Eric Anderson - 22 May 2008 20:12 GMT
> > What are you using for the MI5 guy? Same thing should work with TBR.
>
> You're right; thanks.  I'm using M[^I]*I[^5]*5

Where are you two still seeing the MI5 guy?  He last tripped my filter
for him on January 26.  I thought he'd gone on hiatus, but perhaps my
news provider is filtering him.

Signature

Eric

Michelle Steiner - 22 May 2008 20:46 GMT
> > > What are you using for the MI5 guy? Same thing should work with
> > > TBR.
[quoted text clipped - 4 lines]
> filter for him on January 26.  I thought he'd gone on hiatus, but
> perhaps my news provider is filtering him.

We're not seeing him; Warren suggested I modify the MI5 filter for TBR
is all.  BTW, the last time MI5 tripped my filter was two days after
Christmas last year.

Signature

Support the troops:  Bring them home ASAP.

Warren Oates - 23 May 2008 13:59 GMT
> We're not seeing him; Warren suggested I modify the MI5 filter for TBR
> is all.  BTW, the last time MI5 tripped my filter was two days after
> Christmas last year.

MI5 must have spirited him away, have him incarcerated in the British
version of Guantanamo; Southend I think it's called.
Signature

W. Oates

Lewis - 23 May 2008 16:49 GMT
>> We're not seeing him; Warren suggested I modify the MI5 filter for TBR
>> is all.  BTW, the last time MI5 tripped my filter was two days after
>> Christmas last year.

> MI5 must have spirited him away, have him incarcerated in the British
> version of Guantanamo; Southend I think it's called.

I thought it was either Swindon or Slough, depending on how bad you were.

Signature

Yeah, Nick. Nick's the kinda guy you can trust. Nick's your buddy
    Nick's the kinda guy you drink beers with. The kinda guy that
    doesn' care if you puke in his car. Nick.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.