Help with Expressions

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Help with Expressions

Postby Parafinn » Mon Sep 20, 2004 2:53 pm

I'm using profile filters to manage one very large NG.

What I would like to do is reject every post apart from any post that contains the word 'under' in the subject line?

Could anyone advise how I can do this?
User avatar
Parafinn
Active Participant
Active Participant
 
Posts: 69
Joined: Tue Oct 14, 2003 5:09 pm

Registered Newsbin User since: 09/07/04

Re: Help with Expressions

Postby hennifer » Mon Sep 20, 2004 3:25 pm

Parafinn wrote:I'm using profile filters to manage one very large NG.

What I would like to do is reject every post apart from any post that contains the word 'under' in the subject line?

Could anyone advise how I can do this?


type "under" without quotes into your filter text bar. Then click FIND in the event that NB doesn't filter on keypress.
User avatar
hennifer
Occasional Contributor
Occasional Contributor
 
Posts: 32
Joined: Fri Sep 17, 2004 12:29 pm
Location: Ontario

Registered Newsbin User since: 09/08/04

Postby Parafinn » Mon Sep 20, 2004 3:38 pm

Doesn't that simply allow me to find files with my chosen name.

I'm running this NG in Auotmatic mode. So i want to be able to set it a nd forget it!

So need to be able to enter the right info in the filters and then go to work and come home to find my files!
User avatar
Parafinn
Active Participant
Active Participant
 
Posts: 69
Joined: Tue Oct 14, 2003 5:09 pm

Registered Newsbin User since: 09/07/04

Postby hennifer » Mon Sep 20, 2004 4:32 pm

Parafinn wrote:Doesn't that simply allow me to find files with my chosen name.

I'm running this NG in Auotmatic mode. So i want to be able to set it a nd forget it!

So need to be able to enter the right info in the filters and then go to work and come home to find my files!



Hmm, my skills with NBPro don't include that automation ability ;) AFAIK, your best bet would be to fire the NBZ files into NB so that it downloads off that list..

Maybe if you checkmark the option in program options to "automagically download all posts" and (maybe not) if the filter has been run it'll only download the ones that pass the filter. I don't know of any command line options to specify which groups or how to put something into the filter textbox on load.. unless you modified your "DEFAULT" filter to have those specs..

:\ any NBPro experts out there with an idea?
User avatar
hennifer
Occasional Contributor
Occasional Contributor
 
Posts: 32
Joined: Fri Sep 17, 2004 12:29 pm
Location: Ontario

Registered Newsbin User since: 09/08/04

Postby Smite » Mon Sep 20, 2004 6:16 pm

Create a blank filter, and add "under" without the quotes into the "Accept Subject" list.
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 Parafinn » Mon Sep 20, 2004 7:24 pm

That's it - nothing else in any other field??
User avatar
Parafinn
Active Participant
Active Participant
 
Posts: 69
Joined: Tue Oct 14, 2003 5:09 pm

Registered Newsbin User since: 09/07/04

Postby Smite » Mon Sep 20, 2004 7:35 pm

Well, if you want it to do any other things that apply to those fields, then sure, but for what you asked, I don't see any need.
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 Parafinn » Wed Sep 29, 2004 1:35 pm

I'm still not getting the desired results i'm after :(

I've opened the profile for the NG and have un-ticked the main box at the top for Reject Subject Filter.

I've then put a tick in the box at the top of Accept Subject Filter and then added the word under in the 'Subject Filters' Tab.

I have nothing under the other tabs - but Newsbin doesn't download anything!

I must be doing something wrong :oops:

PS. I know there are files and subject with the word 'under' in this NG - litterally hundreds!

Any futher ideas guys?
User avatar
Parafinn
Active Participant
Active Participant
 
Posts: 69
Joined: Tue Oct 14, 2003 5:09 pm

Registered Newsbin User since: 09/07/04

Postby dexter » Wed Sep 29, 2004 2:50 pm

Turn off the subject filters and test your filter in the find box on the main window. Once you know you have a keyword that filters in what you want, you can update the filter profile. Make sure the filter profile is set for that group so it will get used whenever you download headers for that group.
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


Return to Regular Expressions

Who is online

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