Help please for regex to omit all posts with ARK in subject

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Help please for regex to omit all posts with ARK in subject

Postby OldBoy » Wed May 04, 2005 7:40 pm

I have read http://www.newsbin.com/nb33help/regexp.htm

But I am struggling to write a Newsbin regex which will omit all posts with ARK in the subject. This is for use in the filter box with the Find button. I am on NB 4.32.

[^A][^R][^K] does not seem to work.

Nor does [^ARK].

What regex should I use?
OldBoy
Seasoned User
Seasoned User
 
Posts: 149
Joined: Sun Feb 29, 2004 11:53 am

Postby dexter » Wed May 04, 2005 9:48 pm

Perl RE doesn't really have a "not". Easiest way to do this is put in a reject filter under Subject Filters for a Filter Profile.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

Postby OldBoy » Sun May 08, 2005 5:32 am

dexter wrote:Perl RE doesn't really have a "not". Easiest way to do this is put in a reject filter under Subject Filters for a Filter Profile.


The way I work, I would much prefer not to have to change filters.

Is there no expression in regex which will show all posts which do *not* have the string 'ARK' (without quotes) in the subject?

Maybe ARK can be defined in regex as a single string (how?) and then the negation of that string used as a filter. Or something like that?

Can anyone advise.
OldBoy
Seasoned User
Seasoned User
 
Posts: 149
Joined: Sun Feb 29, 2004 11:53 am

Postby Kiltme » Mon May 09, 2005 6:06 pm

Regex (generic) supports a NOT command to exclude things.

Newsbin's implementation doesn't, so no you can't have an exclusion find.

The closest would be to select everything with ARK and mark-as-read then process the rest.

Since you're doing this in the find box you're obviously not do autodownload where you could just put it in the exclude subject filter.
User avatar
Kiltme
Seasoned User
Seasoned User
 
Posts: 638
Joined: Mon Jan 05, 2004 2:02 am

Registered Newsbin User since: 01/05/04


Return to Regular Expressions

Who is online

Users browsing this forum: Google [Bot] and 1 guest