How can I search for a filename ENDING with a certain char?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MrAnalogy
Posts: 49
Joined: 29 Jan 2007 20:46

How can I search for a filename ENDING with a certain char?

Post by MrAnalogy »

I'm trying to find filenames ending with "_" .
I'm also trying to find filenames with "_" occurring anywhere BUT the end.

Using a pattern match (? *) works if that is the first char, but not if the last char.

E.g.,: searching for a* gets results but *a does not (even though there ARE filenames with /a/ occurring after the 1st char.

I'd prefer not to use RegExp (very rusty on that.)
Software company owner

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How can I search for a filename ENDING with a certain ch

Post by highend »

I'm trying to find filenames ending with "_"
*_.*

You have to include the pattern for the extension as well.
I'm also trying to find filenames with "_" occurring anywhere BUT the end.
*_*.* & !*_.*
Boolean mode...

Ofc you run in trouble if your file names contain a dot^^
One of my scripts helped you out? Please donate via Paypal

MrAnalogy
Posts: 49
Joined: 29 Jan 2007 20:46

Re: How can I search for a filename ENDING with a certain ch

Post by MrAnalogy »

Perfect. Thanks!
Software company owner

Post Reply