Subject Filter Question

Technical support and discussion of Newsbin Version 6 series.

Subject Filter Question

Postby jeffpurser » Mon Nov 03, 2014 11:37 pm

Is there a way to filter out all subjects which have as the last 3 characters a period followed by two numbers?

Example = abyrewloph.11

Or is there a filter expression which will lock out all posters whose name starts with two digits followed by a period?

Example = 11.(followed by nonsensical string of characters)

for more examples, check out a.b.teevee.

Thanks.
jeffpurser
Occasional Contributor
Occasional Contributor
 
Posts: 14
Joined: Wed May 23, 2012 4:05 pm
Location: Hawaii

Re: Subject Filter Question

Postby Quade » Tue Nov 04, 2014 1:45 am

"[.][0-9]{2}[\s$]"

"dot followed by 2 numbers followed by a space or end of line".

Would probably to the subject. I'd have to test it.

"^[0-9]{2}[.]"

Would probably do the poster.

You can test the subject RE's in the post list.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Subject Filter Question

Postby jeffpurser » Wed Nov 05, 2014 3:26 pm

Could not get either to work.

Thanks anyway.
jeffpurser
Occasional Contributor
Occasional Contributor
 
Posts: 14
Joined: Wed May 23, 2012 4:05 pm
Location: Hawaii

Re: Subject Filter Question

Postby jackholexxxx » Wed Nov 05, 2014 3:39 pm

The poster lockout worked for me: "^[0-9]{2}[.]"

Exit newsbin, add the string to the end of the PosterLockout.txt file in your data folder (add it without the quotes), restart newsbin.
jackholexxxx
Seasoned User
Seasoned User
 
Posts: 199
Joined: Wed Apr 15, 2009 6:18 pm

Registered Newsbin User since: 11/01/04

Re: Subject Filter Question

Postby Quade » Wed Nov 05, 2014 6:06 pm

Well, first I'd try this one. The problem is it probably matches too much.

"[.][0-9]{2}"

then maybe try this one.

"[.][0-9]{2}[\"\s$]"

This one includes a trailing quote after the 2 numbers. Make sure you enter it without including the surrounding quotes.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44984
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Subject Filter Question

Postby jeffpurser » Wed Nov 05, 2014 8:53 pm

Thanks to both of you.

I tried it again with the instructions jackholexxx gave and it did work for the poster.

And, Quade, as usual you are prompt with your help.
jeffpurser
Occasional Contributor
Occasional Contributor
 
Posts: 14
Joined: Wed May 23, 2012 4:05 pm
Location: Hawaii


Return to V6 Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests