Search pdf docs NOT containing a certain pattern?

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

mattad
User
Posts: 162
Joined: Sat Nov 29, 2008 10:37 am

Search pdf docs NOT containing a certain pattern?

Post by mattad »

Occasionally I want to find all pdf docs in a (big) directory tree which contain a certain pattern
but NOT a certain other (sub) pattern.

Example: I want to find all pdf docs which contain (without quotes):

"x.log20"

but from the found file set I want not to show/exclude those containing

"x.log201"

In general search tools implement the search pattern in a way that users can enter multiple search patterns delimited by blanks (=boolean OR operator) and a "-" as NOT boolean operator. So the search filter above would be

x.log20 -x.log201

If I enter this pattern in the search entry field of XChangeViewer then NO pdf doc is found. Most probably because XChangeViewer thinks that the dash "-" is part of the search pattern.

So how else can I exclude a certain search pattern from result list?

Matt
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7445
Joined: Wed Mar 25, 2009 10:37 pm

Re: Search pdf docs NOT containing a certain pattern?

Post by Paul - PDF-XChange »

Hi Matt,

thanks for the post. In it's current iteration the Viewer does not have boolean operators to do this. It is something that we are planning on adding to the editor in the future. In fact there is even the suggestion that we may implement regular expressions for searching.

Are you using the Search feature within the Viewer and selecting the folder from there or are you using Windows Search and accessing the PDF files through our Shell Extensions?

I didn't see a way to use booleans with Windows Search either. Perhaps you can correct me here? If so a screen shot of your search criteria might help. If it's supported by Windows Search I can check with the dev team whether this should be carried through the Shell Extensions.

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
mattad
User
Posts: 162
Joined: Sat Nov 29, 2008 10:37 am

Re: Search pdf docs NOT containing a certain pattern?

Post by mattad »

Paul - Tracker Supp wrote: In it's current iteration the Viewer does not have boolean operators to do this. It is something that we are planning on adding to the editor in the future. In fact there is even the suggestion that we may implement regular expressions for searching.

Are you using the Search feature within the Viewer and selecting the folder from there or are you using Windows Search and accessing the PDF files through our Shell Extensions?
I am using search feature INSIDE the viewer.

Maybe full regular expressions require too much effort to implement but simple wildcards with boolean operators should be easy.

So could you assign the implementation (inside Viewer) a higher priority?

Thank you
Matt
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Search pdf docs NOT containing a certain pattern?

Post by Stefan - PDF-XChange »

Hi Matt,

It is in the ToDo list and will be investigated when time allows!

Best,
Stefan