Filter by author

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Filter by author

Postby bonalymac » Thu Oct 21, 2021 12:06 pm

Help for a newbie please.

I'm trying to create a filter with authors names. As far as I can see from reading the help files, the best way is to do something like

John Smith | Jane Jones | Alex Johnson

etc

Is there a limit to the number of characters I can use?
bonalymac
Seasoned User
Seasoned User
 
Posts: 103
Joined: Wed Dec 28, 2005 9:12 pm

Registered Newsbin User since: 12/23/05

Re: Filter by author

Postby Quade » Thu Oct 21, 2021 2:21 pm

It has to be a valid regular expression.

"John.*Smith | Jane.*Jones | Alex.*Johnson"

You could also just add multiple poster accept/reject filters. One per line.

There is some upper limit but I'm not clear what it is. The problem with any filtering is the more filters you have, the slower the filters will be. That's why "filter accepting" a few posters is much more efficient than trying to "filter reject" 100's of posters.
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: Filter by author

Postby bonalymac » Thu Oct 21, 2021 3:09 pm

Thanks, for the details, I'm just running this as a one-off, so speed is not really an issue.
bonalymac
Seasoned User
Seasoned User
 
Posts: 103
Joined: Wed Dec 28, 2005 9:12 pm

Registered Newsbin User since: 12/23/05


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests