"foo" without "vol"

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

"foo" without "vol"

Postby bobkoure » Tue Jun 26, 2007 11:08 am

Sometimes there are posts with the pars named in a way that NBP doesn't recognize 'em as something to put into the scratch list.
A simple solution (using find)
foo(?!.*\.vol)
finds all of foo without the string vol (assuming par volume posts say "vol" somewhere in them)
select all, then [enter] or [ctl][e] - to put into download list

then (again using find)
foo.*\.vol
select all, then [ctl][ins] - to put into scratch list

More of an issue for multi-volume stuff, of course...
bobkoure
 

Postby Quade » Tue Jun 26, 2007 11:11 am

Nice.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 45006
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Postby ozzii » Wed Jun 27, 2007 7:54 am

Thanks, that will help
ozzii
Seasoned User
Seasoned User
 
Posts: 410
Joined: Thu Feb 23, 2006 6:10 pm
Location: France

Registered Newsbin User since: 02/23/06


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests