How do I search for ALL CAPS?

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

How do I search for ALL CAPS?

Postby insolution » Sat Jul 24, 2010 3:19 pm

A lot of the spam I am not catching with word or poster settings have subject lines in all caps. How can I use RegEx or a filter to catch these?

For example I want to catch:

THIS IS A SPAM POST

but not:

This is a SPAM POST

It would be helpful to be able to ignore x number of characters/spaces from the beginning or the end of the line.

I also tried [A-Z][A-Z][A-Z][A-Z][^a-z] to catch subjects where there are four caps in a row but that still shows posts with lower case letters.

I have search Google and tried some of the examples and the ones in this forum but can't seem to get what I want. I am using the Display search box to test the expressions...maybe that's the issue?

v 5.56 build 9812

Scott
insolution
Active Participant
Active Participant
 
Posts: 65
Joined: Fri Aug 08, 2003 11:06 am

Registered Newsbin User since: 09/01/02

Postby Quade » Sat Jul 24, 2010 3:37 pm

No you can't sorry. Everything gets mapped to lower case.
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


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests