Help with filter?

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Help with filter?

Postby pinhead » Tue Oct 20, 2015 11:30 pm

Does anyone have a expression for the filters to pick up a range of files in auto mode? Like all files numbered 701-724. Have tried a few but didn't work.
Something like,

File[.]7(0-2)(0-9)[.]*1080p

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

Re: Help with filter?

Postby Quade » Wed Oct 21, 2015 6:31 am

Does anyone have a expression for the filters to pick up a range of files in auto mode? Like all files numbered 701-724. Have tried a few but didn't work.
Something like,

File[.]7(0-2)(0-9)[.]*1080p



I think this will do it. "[]" is how you set a range. You can test this in the find box to make sure it works too.

File[.]7[0-2][0-9][.]*1080p

I think you probably want a ".*" between the range and 1080.

"[.].*" means "a period followed by any number of characters"

File[.]7[0-2][0-9][.].*1080p

http://www.regular-expressions.info/numericranges.html
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Help with filter?

Postby pinhead » Wed Oct 21, 2015 12:07 pm

TY,
That is what i tried first and it kind of works . But it ignores the 7.
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 filter?

Postby Quade » Wed Oct 21, 2015 3:00 pm

That RE is saying the 7 follows right after the ".". If that's not the case it won't match.

How about posting a subject? Remove any of the details but leave the formatting.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Help with filter?

Postby pinhead » Fri Oct 23, 2015 1:14 am

Ok so the format is,

my.file.701.1080
my.file.702.1080
my.file.703.1080 and so on.

as everyone is probably aware the common format is

my.file.s07e01.whatever.1080p.mkv and the RE works perfect for that. i thought the new format would be easier. just can't get it to work.

If i do,
my[.]file[.]7[0-2][0-9].*1080 it will pick up season 4, 6 or whatever and even get some subjects with the original formatting. Like the 7 isn't there.

7 is just an example some are season two or fifteen or whatever.

Thanks
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 filter?

Postby Quade » Fri Oct 23, 2015 8:37 am

Are you trying to do this from the search tab? All the files I found like this were obscured files that only seem to show up in search.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Help with filter?

Postby pinhead » Fri Oct 23, 2015 2:37 pm

Yeah, your right. there's no real way to catch them in the filters is there?
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 filter?

Postby Quade » Fri Oct 23, 2015 3:20 pm

There's no direct way. Are you wanting to automatically download these files or just get a clean list?

I generated a watch list that periodically pulls all the latest results from alt.binaries.etc. I set it to look for "1080". It sends the results to a custom group that only gets "1080" results. Then I loaded that virtual group and applied the RE.

[.][0-9][0-9][0-9][.]1080

Is the RE I used.

If you decide to play with the search based watch lists, you might need to turn down how often it polls. It doesn't impact unlimited users but people on limited search accounts can run through searches pretty quickly with a bunch of watch lists. It's in the "Switches" options. Some people set it to once or twice a day.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44981
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests