Request for Help - Writing a simple filter.

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Request for Help - Writing a simple filter.

Postby Mickey » Sat Nov 10, 2001 5:56 pm

The filtering mechanism in NewsBin Pro baffles me. Would someone reading this message please be so kind as to provide me with the syntax to a filter which would filter

~~Big_Fat_Ugly_Woman!

but not

~~Big_Old_Cute_Woman!

I'm sure it's simple, but I'm so confused!!!

Thank you so very much
Mickey
 

RE: Request for Help - Writing a simple filter.

Postby Moondawgie » Sat Nov 10, 2001 6:45 pm

You are not alone in your frustration. I can't come up with a filter which works either.

Why don't the following work? (At least not for me in 4.13):

Fat_Ugly_Woman!
Fat_Ugly_Woman\!
Fat_Ugly_Woman*
Fat\_Ugly\_Woman

*Fat\_Ugly\_Woman* (The leading * is dropped when added to the filter list)

Fat[_]Ugly[_]Woman
*Fat_Ugly_Woman*
Fat Ugly Woman
Fat.Ugly.Woman
Fat and Ugly and Woman
User avatar
Moondawgie
Seasoned User
Seasoned User
 
Posts: 426
Joined: Mon Aug 13, 2001 5:17 pm

Registered Newsbin User since: 05/17/03

RE: Request for Help - Writing a simple filter.

Postby dexter » Sat Nov 10, 2001 9:20 pm

It should work just as you typed it. ~~big_fat_ugly_woman typed in to the "Reject List" as a subject filter under the "Spam Filters" button.

You can test your filters in the "Find in Subject" field while looking at the Post List.

Where are you entering it?
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: Request for Help - Writing a simple filter.

Postby dexter » Sat Nov 10, 2001 9:32 pm

How are you entering your filters? Most the ones you mentioned work. Specifically:

Fat_Ugly_Woman! works

Fat_Ugly_Woman\! works, "!" is escaped but doesn't need to be

Fat_Ugly_Woman* works, the asterisk in this case means 0 or more "n" characters

Fat\_Ugly\_Woman works, the underscores are escaped but don't need to be.

*Fat\_Ugly\_Woman* works, same reasons as previous two

Fat[_]Ugly[_]Woman works, the underscore is listed as a set of characters to match

*Fat_Ugly_Woman* works, first asterisk is ignored, 2nd works by accident because it matches 1 "n".

Fat Ugly Woman does not work unless there are really spaces there

Fat.Ugly.Woman works, the "." means "match any single character"

Fat and Ugly and Woman will not work.


Hope this helps.
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: Request for Help - Writing a simple filter.

Postby Mickey » Mon Nov 12, 2001 5:00 pm

We were adding them to the "Default" filter's reject list via NewsBin Pro's Filter's Options menu presented when one selects the "Filters" button on the tool bar.

KingFish, who is our neighborhood computer Guru, finally gave up in exasperation and suggested that the problem might involve something with the information relative to NewsBin Pro in the Windows 2000 Pro registery. So we performed a fresh install of Windows 2000 Pro, installed NewsBin Pro 4.0b13, and the filters now seem to work.

Keep those beta releases coming please.

Mickey
Mickey
 

RE: Request for Help - Writing a simple filter.

Postby Quade » Tue Nov 13, 2001 12:34 am

Filters aren't stored in the registry. If you had "Show Filter Posts" turned on, the filters will get bypasses. Many people seem to turn this on then forget it bypasses the filters.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
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