NOT filter problems...

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

NOT filter problems...

Postby 78Staff » Sat Sep 14, 2013 3:31 am

new user here, coming over from Agent. Figured out most of my filters, but my "not" filters are giving me trouble... It's a hard one to search for as "not" is a common word.

I'm looking to filter any subject with .rar that does not include partxx. The basics of this are easy enough, ie "part[0-9]+", "\.rar" - I just can't seem to find the right combo, having tried several iteration of ^, NOT, AND NOT, etc...

So I would like to filter... "Some random subject.rar" while keeping posts such as "Other random subject.part01.rar" - if that makes sense.

Thanks,
'78
78Staff
Occasional Contributor
Occasional Contributor
 
Posts: 13
Joined: Sat Sep 14, 2013 3:14 am

Registered Newsbin User since: 09/14/13

Re: NOT filter problems...

Postby itimpi » Sat Sep 14, 2013 6:25 am

Are you trying to filter locally downloaded headers, or via the Internet search feature?

I am not sure that it is possible for local header search which is regex based. You might need to use a reject filter instead to achieve what you want.

For Internet search use the '-' symbol (e.g. -Partxx).
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Re: NOT filter problems...

Postby 78Staff » Sat Sep 14, 2013 9:22 am

Local headers... and sorry yes I am trying to exclude so reject is what I am looking for. Just trying to eliminate the hundreds of random subject posts in the binary groups with generic names authors.

Thanks,
78Staff
Occasional Contributor
Occasional Contributor
 
Posts: 13
Joined: Sat Sep 14, 2013 3:14 am

Registered Newsbin User since: 09/14/13

Re: NOT filter problems...

Postby dexter » Sat Sep 14, 2013 11:01 am

You can set up a filter profile that will do this for you.

Go under Options/Filters to get to the filter dialog. Then create a filter profile and set your Subject Accept filter to \.rar then set a Subject Reject filter to \.part[0-9]+

Then when you load a post list, select the filter profile from the toolbar at the top of the post list. Depending on the version you are running, you might have to hit the power button icon to turn on the additional filter capability for the post list.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Re: NOT filter problems...

Postby 78Staff » Sat Sep 14, 2013 4:34 pm

OK, thanks - I will give that a try :)

'78
78Staff
Occasional Contributor
Occasional Contributor
 
Posts: 13
Joined: Sat Sep 14, 2013 3:14 am

Registered Newsbin User since: 09/14/13

Re: NOT filter problems...

Postby 78Staff » Sun Sep 15, 2013 12:24 am

OK I read that on my phone, so didn't take it in fully. That seems opposite of what I want to do, I probably didn't explain it well lol...

I was to see posts that have subject with partxx.rar, but NOT see posts that have .rar in subject without partxx...

So for instance I want to see (accept):

SomeSubject.part01.rar

But reject stuff ones that don't have the part01, ie:

OtherSubject.rar


EDIT - Ah I think I have it, I just inverted what you gave me, and then also added extra stuff to the accept I wanted to see ie nfo, nzb, etc... I think this will work. :D
78Staff
Occasional Contributor
Occasional Contributor
 
Posts: 13
Joined: Sat Sep 14, 2013 3:14 am

Registered Newsbin User since: 09/14/13


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 1 guest