Help with (01234).WMV

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Help with (01234).WMV

Postby hideaway » Thu Apr 01, 2010 8:57 pm

I would like to exclude files that:
end in
a four-digit number inside parens
followed by a period
followed by WMV

I've tried the following in my global filter, but it doesn't work:

\([0-9][0-9][0-9][0-9]\)\.WMV

Any suggestions?

Joe
User avatar
hideaway
Active Participant
Active Participant
 
Posts: 52
Joined: Thu Oct 23, 2003 7:23 pm
Location: California

Registered Newsbin User since: 11/24/02

Postby dexter » Thu Apr 01, 2010 9:54 pm

That looks right to me. I tested it and it works here. Setting this as a global subject filter and having Enable Filters turned off, I see a bunch of posts with an "R" in the box to the left of the subject and a status of "Subject Filter". The subjects that match the filter are shown as Idle/New.

What version are you using? Where are you expecting the filter to be applied?
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Postby Quade » Thu Apr 01, 2010 10:10 pm

Yeah, it's GOT to be in the subject filter.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby hideaway » Fri Apr 02, 2010 2:10 am

dexter wrote:That looks right to me. I tested it and it works here. Setting this as a global subject filter and having Enable Filters turned off, I see a bunch of posts with an "R" in the box to the left of the subject and a status of "Subject Filter". The subjects that match the filter are shown as Idle/New.

What version are you using? Where are you expecting the filter to be applied?


I guess I don't understand why it needs to go in the Subject instead of the Filename filter. Can you explain? I currently have it in a custom filter, which is applied to all my groups; shouldn't it work there?

Where is the Enable Filters switch?

Maybe you can point me to a URL that explains how filters work--the model I have in mind obviously isn't right.

I'm using 5.55B9 build 9714.
User avatar
hideaway
Active Participant
Active Participant
 
Posts: 52
Joined: Thu Oct 23, 2003 7:23 pm
Location: California

Registered Newsbin User since: 11/24/02

Postby dexter » Fri Apr 02, 2010 10:12 am

Filename filter is not applied until AFTER the post is downloaded. Before the post is downloaded, all Newsbin knows about is the subject, it doesn't know the true filename until the post is downloaded. Usually people post the filename in the subject, that's why we say to use the Subject filter. Since spammers like to use a different filename than what is in the subject, like maybe a .exe file to get you to download something unknowingly, we provide a separate filename filter to allow you to catch that possibility.

Filters are documented in this section on Newsbin Searching and Filtering
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Postby hideaway » Fri Apr 02, 2010 1:32 pm

dexter wrote:Filename filter is not applied until AFTER the post is downloaded. Before the post is downloaded, all Newsbin knows about is the subject, it doesn't know the true filename until the post is downloaded. Usually people post the filename in the subject, that's why we say to use the Subject filter. Since spammers like to use a different filename than what is in the subject, like maybe a .exe file to get you to download something unknowingly, we provide a separate filename filter to allow you to catch that possibility.

Filters are documented in this section on Newsbin Searching and Filtering


(What I don't know about NTTP and News could fill a book.)

So, NewsBin doesn't know the real filename until it queries for the first chunck of file data data? Wouldn't that argue for always making the first chunk-query tiny?

Based upon what you've said, I would expect my regex to work in the Filename filter--albeit at the expense of having to download a potentially unwanted multi-megabyte file.

Where is the Enable Filters switch you mentioned earlier?

Thanks,

Joe
User avatar
hideaway
Active Participant
Active Participant
 
Posts: 52
Joined: Thu Oct 23, 2003 7:23 pm
Location: California

Registered Newsbin User since: 11/24/02

Postby richy99 » Fri Apr 02, 2010 1:52 pm

its in the window where you are seeing the posts, there is a tick box
User avatar
richy99
Elite NewsBin User
Elite NewsBin User
 
Posts: 6353
Joined: Fri Nov 21, 2003 8:04 pm
Location: Wales

Registered Newsbin User since: 12/31/03


Return to Regular Expressions

Who is online

Users browsing this forum: Google [Bot] and 0 guests