All xxxxx except if yyyy

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

All xxxxx except if yyyy

Postby BZee » Wed Feb 20, 2019 8:49 am

NB 6.82b1
search headers (previously downloaded)

Is there a way I can search multiple pictures groups for all pictures of Chevrolet except files that say the color is white. (something like "chev -white"). I've looked in several RE references but haven't found a NOT operator.
BZee
Seasoned User
Seasoned User
 
Posts: 459
Joined: Thu Sep 27, 2001 9:10 pm
Location: California

Registered Newsbin User since: 04/13/03

Re: All xxxxx except if yyyy

Postby Quade » Wed Feb 20, 2019 10:03 am

You could do it with a filter profile because you can create an accept filter for "chevy" and a reject filter for "white".

Off the top of my head I'm, not sure how to do it with an RE. I think it's doable though.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: All xxxxx except if yyyy

Postby BZee » Sun Mar 31, 2019 10:38 am

I can search headers for "Chevrolet" and use a reject filer for "white" but is there a way to add multiple items at one time to a filter profile. I have tried "apple baby car doll" with each term separated by a space, a comma, a colon, a semi-colon, or a paragraph mark. I would like to add 60 to 70 terms but if there is no current way then I'll enter them one-at-a-time.
BZee
Seasoned User
Seasoned User
 
Posts: 459
Joined: Thu Sep 27, 2001 9:10 pm
Location: California

Registered Newsbin User since: 04/13/03

Re: All xxxxx except if yyyy

Postby Quade » Sun Mar 31, 2019 2:43 pm

this|that|the|other|thing

Will match each word. Just make sure not to add spaces. They have to be butted together this way. | is OR in regular expressions.
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 2 guests