How to filter for "NOT jpg"

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

How to filter for "NOT jpg"

Postby Quicksilver » Fri Mar 03, 2006 7:01 pm

How do I filter such that I get everything except entries with the string "jpg" ?

I tried the following but it doesn't work:

[^j][^p][^g]

What should I use?
Quicksilver
Active Participant
Active Participant
 
Posts: 88
Joined: Wed Apr 07, 2004 4:46 pm

Postby Quade » Fri Mar 03, 2006 7:12 pm

Where would you put it, in the filter profile? If it's the filter profile then just add

"[.]jpg" to the subject "Reject" list.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45003
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby Smite » Sat Mar 04, 2006 3:30 am

Basically, you can't.

Here's how to do not "jpg":
[^j]|j[^p]|jp[^g]

The issue is, "1jpg" contains "1jp" which is not "jpg", and as such, the entire post will pass. So this is only usefull if you know the entire subject of the item you want rejected before hand.
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 10 guests