Regex in "lock out poster keyword" ?

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Regex in "lock out poster keyword" ?

Postby dstaples » Thu Mar 31, 2005 5:32 am

Hi

Regex's DO seem to work in that field however there seems to be no way to manage those filters like the subject & filename filters. Am I missing something?

Anyway,
In some of the groups I download there is a poster that posts stuff I dont want <ya, suprise> The subjects & filenames are all over the place so filtering them is out, However, he/they/it allways have a poster name like
"Jalen" <[email protected]>
or
"Jalen" <[email protected]>

So the question is, How do I wite a filter that rejects anything over say 15 chars without a space or a . between the < > 's for the lockout poster keyword ?
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Smite » Fri Apr 01, 2005 12:13 am

does \w{15} work?
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby dstaples » Fri Apr 01, 2005 3:51 am

Dosent seem to...

I tried \w>[15} too....
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Smite » Fri Apr 01, 2005 11:33 pm

k, probably something to do with upper/lower case. The regex in v5 does that too (displays them like you typed them, but treats them all as uppercase).

The other options that might work are:
[a-zA-Z0-9]{15}
or
[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]
which should definately work.
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby dstaples » Sun Apr 03, 2005 5:42 am

They arent always exactly 15 chars but are always at least 15 or more. Can I use some sort of > operator?
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Smite » Sun Apr 03, 2005 3:45 pm

Unless you use $ or ^ in the expression, it doesn't matter what comes before or after the bit that matches the regex. "A" will match "aaaa" as well as just "a".
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby dstaples » Sat Apr 09, 2005 2:21 am

I guess regex dosent work in that field :cry:

Ive used all of that and still cant get rid of the problem poster.

Feature request?? Perhaps adding poster to the filter options window? Please?
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Smite » Sat Apr 09, 2005 2:38 am

I'm pretty sure 4.33B6 does support regex in the poster lockout.
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03

Postby dstaples » Tue Apr 12, 2005 1:28 am

I am SO frustrated!!! I cant get rid of this KP posting a**wipe.

I've tried all of your suggestions, which I do appreacate by the way. but I still cant filter him out...
Heres a smattering of the poster names he's using
There are usually a couple hundred posts scattered across a dozen or more names... the long spaceless alphnumeric before the @ is the only constant...


"Jalen" <[email protected]>
Andre <[email protected]>
Segre <[email protected]>
"Ryan" <[email protected]>
"Alejandro" <[email protected]>
"Alejandro" <[email protected]>
"Alejandro" <[email protected]>
"Alejandro" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Beau" <[email protected]>
"Austin" <[email protected]>
"Austin" <[email protected]>
"Sarah" <[email protected]>
"Sarah" <[email protected]>
"Tyler" <[email protected]>
"Tyler" <[email protected]>
Amanda <[email protected]>
Amanda <[email protected]>
Amanda <[email protected]>

What am I doing wrong?
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby dstaples » Sat May 28, 2005 3:10 am

So any ideas?
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Quade » Sat May 28, 2005 7:45 am

Hmm. I didn't think "lockout poster" used regex. I suppose I could try it in 5. I'd be concerned about performance but, it can't hurt to try.
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

Postby dstaples » Mon May 30, 2005 12:54 am

I had submitted a feature request that asked that there be another filter tab for poster keyword.

It sure would be useful.
User avatar
dstaples
n00b
n00b
 
Posts: 8
Joined: Mon Jul 14, 2003 3:18 am

Registered Newsbin User since: 10/17/99

Postby Quade » Mon May 30, 2005 1:24 am

There is a poster keyword filter. I just don't think it's regex.
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

Postby Smite » Mon May 30, 2005 4:58 pm

Some time ago you claimed to have hooked it up as regex. I never bothered testing that statement though. :P
Please read the FAQ before asking any questions.
If you're new to newsgroups, and the files on them, you can find a very helpful guide here.
User avatar
Smite
Katamari Damacy Addict
 
Posts: 5318
Joined: Sat May 19, 2001 1:54 am
Location: Alberta, Canada

Registered Newsbin User since: 03/27/03


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 23 guests