Accept / Reject filter

Technical support and discussion of Newsbin Version 6 series.

Accept / Reject filter

Postby rahnbo » Wed Oct 05, 2016 10:21 am

Can I set up filter profiles so that I have something like "4k" rejected but not "64k?" If I put a reject if subject contains "4k" but accept if subject contains "64k" then everything with "64k" is rejected. I can see why that would be problematic just wondering if I can do it?
rahnbo
n00b
n00b
 
Posts: 2
Joined: Sat Feb 05, 2011 6:41 pm

Registered Newsbin User since: 02/05/11

Re: Accept / Reject filter

Postby Quade » Wed Oct 05, 2016 1:57 pm

Couple things you could do. You could make the accept filter more specific for example.

"[0-9]{2}k" - requires 2 numbers before the k.
"[0-9]{2,3}k" - requires 2 and up to 3 numbers before the k.

You could make the reject filter more specific. If "4k" always has a space on either side then

"\s4K\s" would match a " 4k " with a space on each side.

It uses regular expressions so, you can even use "look around". To only reject or match of specific things are around the "4k".
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: Accept / Reject filter

Postby rahnbo » Wed Oct 05, 2016 4:48 pm

Beautiful. Will experiment with each.
rahnbo
n00b
n00b
 
Posts: 2
Joined: Sat Feb 05, 2011 6:41 pm

Registered Newsbin User since: 02/05/11


Return to V6 Technical Support

Who is online

Users browsing this forum: Google [Bot] and 2 guests