With joe but without bill

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

With joe but without bill

Postby ozzii » Sat Sep 30, 2006 5:36 am

Hi,

I would like, if it's possible, to do a filter who accept all thes subject with "joe" but not the subject with "joe" and "bill".
So I will see the subjects with "joe......john" but not with "joe.....bill".

I am clear enough :?:
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Postby ozzii » Sat Sep 30, 2006 5:40 am

I answer to myself.

Silly question :oops:
put joe into the accept filter and bill into the deny filter (because I don't want to see all the subjects with bill).

But my question remain if I want to filter just the subjects for joe and bill into the same subject.
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Postby Smite » Sat Sep 30, 2006 1:59 pm

So, you're looking for how to do an AND?
http://forums.newsbin.com/viewtopic.php?t=1671
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 ozzii » Sun Oct 01, 2006 4:28 am

I don't this it's just an AND.
It's more like : joe NOT (joe AND bill)
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06

Postby itimpi » Sun Oct 01, 2006 5:49 am

the problem is that RegEx does not include an explicit AND operator so you have to work around that limitation.
The Newsbin Online documentation
The Usenettools for tutorials, useful information and links
User avatar
itimpi
Elite NewsBin User
Elite NewsBin User
 
Posts: 12607
Joined: Sat Mar 16, 2002 7:11 am
Location: UK

Registered Newsbin User since: 03/28/03

Postby Smite » Sun Oct 01, 2006 11:02 pm

Yes, so enter "Joe" in the accept, and "Joe AND Bill" (using the regex explained there) in the reject.

But this will accomplish the same thing as just "Joe" in the accept and "Bill" in the reject, since anything passing the Joe filter already has Joe in it, so rejecting "Joe AND Bill" is redundant.
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

cron