help with accept filter

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

help with accept filter

Postby pinhead » Mon Feb 25, 2013 11:27 pm

Running in Auto mode and wanted to get files that are posted in different resolution or formats. Like lets say,

My.Fav.files.volume1.chapter1.rar

My.Fav.files.volume1.chapter1.720p.rar

and only wanted to pickup the 720p version and the volume and chapter numbers would change.

Is that possible?
TY for any help.
pinhead
Occasional Contributor
Occasional Contributor
 
Posts: 46
Joined: Fri Jan 24, 2003 10:55 am
Location: Florida

Registered Newsbin User since: 05/26/03

Re: help with accept filter

Postby Quade » Mon Feb 25, 2013 11:44 pm

I'd do: "My[.]Fav[.]files.*720p[.]rar"

Meaning it matches "My.Fav.Files<anything>720p.rar"

.* means anything. This is the easiest way.

Easiest way to test this is to type it into the "Find" box on a post list. It used the same mechanism.



You can do things like "S[0-9]E[0-9]"

"My[.]Fav[.]files.*S[1-9]E[0-9]{1,3}.*720p[.]rar"

E[0-9]{1,3} - matches "E0-E999"



You can be more precise later if you want to:

Then say you got season 1 already, you could set it to

"My[.]Fav[.]files.*S[2-9]E[0-9].*720p[.]rar"

You can make it even better with new RE's.

"[0-9][0-9]" Will match the number 00-99

[0-9] means "match a single number from 0 to 9. So, you can tweek it depending on what you're looking for.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44999
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: help with accept filter

Postby pinhead » Tue Feb 26, 2013 12:24 am

Perfect. TY
pinhead
Occasional Contributor
Occasional Contributor
 
Posts: 46
Joined: Fri Jan 24, 2003 10:55 am
Location: Florida

Registered Newsbin User since: 05/26/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 3 guests