How can I best filter out .par2 etc but keep the .rar files

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

How can I best filter out .par2 etc but keep the .rar files

Postby bagera » Sun Jun 15, 2003 4:37 pm

I've been trying \.par2$ to filter out the .PAR2 files but not the .part##.rar any suggestions on how to better accomplish this.

I want the .rar files but I almost never need the extra stuff. I figure on the rare occasion when I need those files I can switch off the filtering to get them.
User avatar
bagera
Occasional Contributor
Occasional Contributor
 
Posts: 29
Joined: Sat Mar 15, 2003 1:17 am

Postby Smite » Sun Jun 15, 2003 5:30 pm

well, for par2, it won't match part anyhow (since there's no 2 in it).

For par1 files, (with .par extensions) I'm not sure. A size filter would work, but would also filter some files you DO want.
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

Postby tch » Mon Jun 30, 2003 11:15 am

I don't have newsbin in front of me, but I'm thinking something like:


\.p(\d+)$ for the .p01,.p02 etc

and then

\.par$ for the .par file
tch
n00b
n00b
 
Posts: 9
Joined: Mon Jun 30, 2003 9:57 am

Postby Smite » Tue Jul 01, 2003 12:06 am

That would work (actually, the \d+ part wouldn't), provided you had that as a file accept filter. The issue with file filters being that Newsbin has to start downloading the post in order to find out the filename. Using subject filters is faster, and much less likely to annoy your news server.
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 3 guests