Multiple Word Filenames Beginning With Upper Case Only?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
frew
Posts: 75
Joined: 02 Feb 2005 17:48

Multiple Word Filenames Beginning With Upper Case Only?

Post by frew »

Hello,

I've got what I consider to be a particularly tricky search I wish to be able to do with TrackerV3.

I wonder if TrackerV3 can do it.

Okay, I've got thousands of wav sound files on my computer and I want to have TrackerV3 find only the wav files whose names all start with upper case letters like this

Blue Bird Whistle.wav
Cat Meow.wav
Gentle Stream Flowing In Woodlands.wav

etc

and to not return results if they are like this

Blue Bird whistle.wav
Cat meow.wav
Gentle Stream flowing In Woodlands.wav

I mean, the filenames I'm trying to find need to have each and every word start with a capital letter....if there are any indivdual words anywhere in the name of the file that do not start with a capital letter, then do not show these in the results.

I would also not mind if I did not have to simultaneously search by type .wav.

I could sort by type latter on. I just need to weed out all the wav files on my computer that have names that have words that all begin with capital letters.

One step further which would be best for me is if I could have TrackrV3 do this:

Find and show only files that meet these three requirements simultaneously:

1. They are a .wav file
2 All the words in their names start with capital letters, and
3. Only return files whose names have more than one word in their names. Because most of the files I'm looking for have more than one word in their names...and this would eliminate single word filenames like Bird.wav from showing up in the results.

Thank you very much for any ideas on this,

Frew

admin
Site Admin
Posts: 65185
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multiple Word Filenames Beginning With Upper Case Only?

Post by admin »

I'm sure there's a RegExp for this.

frew
Posts: 75
Joined: 02 Feb 2005 17:48

Post by frew »

I'm not familiar with regular expressions.

If you happen to come up with one for me to use, please post it here and I'll try it.

Thank you very much,

Frew

admin
Site Admin
Posts: 65185
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Oh, rereading my last post I have to say I did not want to sound harsh. It was rather meant as an invitation for anybody who is familiar with RegExp (I'm not a RegExp man either).

But I found out it's much simpler, you don't need RegExp:
Enter this search term:

Code: Select all

NOT * [a-z]* AND *.wav
And have Match Case checked.

frew
Posts: 75
Joined: 02 Feb 2005 17:48

Post by frew »

Well, I copied and pasted what you have there

NOT * [a-z]* AND *.wav (I check Match case also)

( Just curious, if it's not to much trouble, could you explain what
NOT * [a-z]* AND *.wav
is suuposed to do? )

It returned all kinds of results that do not fit the description I am looking for...for example it returned the results

gong.wav


And it also returned many other filenames that

1. are one word (I want only two or more words in the filenames)

2. have filenames that contain words that are not capitalized (I want only filenames whose words contain only capitalized words)

Just curious if you tested this.

Thank you very much for any other ideas about this.

Frew

admin
Site Admin
Posts: 65185
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Try this:

Code: Select all

NOT (* [a-z]* OR [a-z]*) AND * *.wav

frew
Posts: 75
Joined: 02 Feb 2005 17:48

Post by frew »

I am absolutely astonished! Wow, how did you do that? That's amazing.

I didn't think it was possible. It works beautifully.

I want to thank you very much for this wonderful help!

If it's not too much trouble, at some point, would you please explain to me in plain english what that search phrase means?

I'd love to be able to construct these kinds of advanced search phrases.

Thank you again, very much, for your great help.

Frew

admin
Site Admin
Posts: 65185
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

You're welcome. You'll see it's not too hard to do:

Code: Select all

Analysis of:
NOT (* [a-z]* OR [a-z]*) AND * *.wav

term:       matches
[a-z]:      any lower case letter
* [a-z]*:   all strings containing a blank followed by any lower case letter
[a-z]*:     all strings starting with any lower case letter
* *.wav:    all strings containing a blank and ending with ".wav"

The rest is logic.
BTW, the search term is processed from left to right, so this order might be a little faster if most of your files are not WAV-files:

Code: Select all

* *.wav AND NOT (* [a-z]* OR [a-z]*)

frew
Posts: 75
Joined: 02 Feb 2005 17:48

Post by frew »

Oh Okay.

Thank you very much for the explanation of the search term.

That is a very helpful explanation.

And thank you for the other optional search term too, I'll try it.

Frew

Post Reply