AVI po1 filter

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

AVI po1 filter

Postby kpneeb » Sat Jun 28, 2003 2:37 am

Image link not allowed for unregistered users How can I set up a filter to cut out avi's with 001 or po1 or any number after the .avi, but be able to download the normal .avi files?
kpneeb
Occasional Contributor
Occasional Contributor
 
Posts: 11
Joined: Sat Jun 28, 2003 2:34 am

Postby dexter » Sat Jun 28, 2003 10:27 am

Put an accept filename filter of \.avi$ The "$" ties it to the end of the string. Give me a couple of examples and maybe I can come up with something better that would work in the subject filter instead of the filename filter. Subject filters are much more efficient because NewsBin doesn't have to start downloading the article to apply the filter.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9511
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Postby Smite » Sat Jun 28, 2003 10:30 pm

Well, if I take you literally, you could add this to the file reject filter:
\.avi.*[0-9]
but that will only take effect when it actually goes to download the file, and as such is slower. A subject reject filter would be a better idea, so try:
\.avi\.[pr0-9][0-9][0-9]

That should match any PAR/MasterSplitter/RAR compressed files that would otherwise be confused with real .avi files.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests

cron