deleting folders

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

deleting folders

Postby phusion » Mon Jul 04, 2011 10:35 pm

Happy 4th NB guys:

Was wondering if the following is possible:
Using NB's "Enable post Unrar filter" option I would like to create a filter that deletes folders:
"Samples" and "Covers" (and of course the files in these folders).
Is there a way to delete entire folders?

thanks
:D
User avatar
phusion
Occasional Contributor
Occasional Contributor
 
Posts: 46
Joined: Sun Mar 12, 2006 8:29 am

Registered Newsbin User since: 03/12/06

Re: deleting folders

Postby Quade » Mon Jul 04, 2011 11:35 pm

Not without new code. I can make a note to think about it. I'm always reluctant to delete folders because, if you use a common folder for anything, it's always possible the wrong thing will get deleted.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: deleting folders

Postby phusion » Tue Jul 05, 2011 12:02 pm

Thanks for the answer Quade.

Can you please tell me how to filter for an AVI file with the word "sample" in the file name.
for example: xyzsample.avi or samplexyz.avi

thanks
:D
User avatar
phusion
Occasional Contributor
Occasional Contributor
 
Posts: 46
Joined: Sun Mar 12, 2006 8:29 am

Registered Newsbin User since: 03/12/06

Re: deleting folders

Postby Quade » Tue Jul 05, 2011 12:05 pm

sample.*[.]avi

Should do it.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: deleting folders

Postby FrizzleFry » Mon Jul 11, 2011 4:13 pm

I use:

.*sample.*[.]avi$

in my global filename reject filter...

If you are using a subject filter then do not use the $ at the end.
User avatar
FrizzleFry
Seasoned User
Seasoned User
 
Posts: 702
Joined: Sun Oct 09, 2005 12:04 am

Registered Newsbin User since: 05/04/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests

cron