How to specify a search criteria for a word in a title

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
H08590
Posts: 37
Joined: 05 Feb 2009 14:57

How to specify a search criteria for a word in a title

Post by H08590 »

I wanted to seach for all MS Word files in all folders that had the word "lent" in the title of the file. I used:
C:\My Documents\?*lent*.doc
However, this resulted in selecting even files with the word "valentine" and "plenty" in the title. How should I revise my serach? Thanks for your help.

I am just trying this out and it seems like there is something new and major coming out in 8.0. Perhaps I should wait to purchase till then. Does anyone understand when 8.0 will arrive?

ale
Posts: 127
Joined: 19 Feb 2009 23:23
Location: Italy

Re: How to specify a search criteria for a word in a title

Post by ale »

I guess you're writing this expression in the address bar, may you try something like this?

C:\My Documents\?:>"\blent\b" & .doc

I'll try to explain the meaning breaking the expression in pieces

?: says we want to make a search (? character) and activates boolean mode (: character)
The & in the middle of the expression is the boolean operator AND
at the right of the boolean operator we have .doc
The expression at the left >"\blent\b" may not be clear so I'll try an explanation here too
> means what follow is a regular expression, the regular expression actually is \blent\b but we have to put in quotes "\blent\b" or escape the \ character \\blent\\b because we're still in boolean mode

lent is your word and \b before and after lent means match the word boundary so that you find lent but not words like valentine or plenty

Maybe there's an easier way, but I took your question as an exercise to write my first regular expression :oops:
I hope the expression is right! if not other forum members will surely correct it
You can find a great reference on the wiki http://88.191.26.34/XYwiki/index.php/File_Find
Finally only Don may give a timeframe for version 8 release but I know that if you buy a license now, version 8 is included, you would have upgrades up to version 8.80 with standard license

H08590
Posts: 37
Joined: 05 Feb 2009 14:57

Re: How to specify a search criteria for a word in a title

Post by H08590 »

Thanks for the assistance and the link to the helpful link to read. I think I will stick to the "Find Files" tab. I think it is easier and will suit my needs.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: How to specify a search criteria for a word in a title

Post by j_c_hallgren »

H08590 wrote: Perhaps I should wait to purchase till then. Does anyone understand when 8.0 will arrive?
The simple way to solve this issue is to buy the lifetime license and then you'll get the benefits now, then and long after! :)

ale: Thanks much for pitching in and helping out! It's real nice to see a relatively new member here contribute when some of us are busy or unavailable! You did a fine job of responding to this and another thread. 8)
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply