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" <2005327224451KJI6YCR3AG4ZHJ@witty.com>
or
"Jalen" <2005327224434CESPURZ0LEYGFM@catlover.com>

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" <200532804749Y8VXAQ14LHMN2Y@earthling.net>
Andre <1111857632424599E044681@aol.com>
Segre <111185217942458493AAF57@aol.com>
"Ryan" <200532420111OWFUIV4KY7WD1E@bikerider.com>
"Alejandro" <2005312193445M0TZVYOUED3MTZ@2die4.com>
"Alejandro" <20053121934477RPL056B2ER7ND@london.com>
"Alejandro" <20053121934481MJ8BFH1UDGFI1@maillist.ru>
"Alejandro" <2005312193458BFUB6EQKPUQFHF@paris.com>
"Austin" <2005314629511NLQC2WQTU4ZJ@playful.com>
"Austin" <200531463004D43HLPLZZE6L@catlover.com>
"Austin" <2005314630126O05U6GKMEMUT@witty.com>
"Austin" <200531463025FPEBP1J2W4JGV@technologist.com>
"Austin" <200531463031VGN4R8GBGPEPS@winning.com>
"Austin" <200531463129NNIUZROAMPSEN@programmer.net>
"Beau" <2005310033331KLU61BHV6HT3T@nycmail.com>
"Austin" <200531463049062PYEVWNPFV3@technologist.com>
"Austin" <2005314630126O05U6GKMEMUT@witty.com>
"Sarah" <200532312918IUPAIWCHCFKLZV@sanfranmail.com>
"Sarah" <200532312932U746KUI4RK1OVV@yours.com>
"Tyler" <200531055254YAQM4ESXX1A50@inorbit.com>
"Tyler" <200531055321VQOB3Z2A2JA52@seductive.com>
Amanda <11129583544256659222425@aol.com>
Amanda <111295835542566593446C0@aol.com>
Amanda <11129583604256659804F83@aol.com>

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: 44981
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: 44981
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 2 guests