Search question

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
curls
Junior Member
Junior Member
Posts: 10
Joined: 2003-11-18, 22:06 UTC

Search question

Post by *curls »

How can I search for mp3 in a filename and exclude the file extension? Is it possible?
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can try to find *mp3*.?* - this will find all files with mp3 in filename and with non-empty extensions. Or you can try to find *mp3*. *mp3*.?* - this will find files w/o extensions too.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Or use the plugins page:
"tc" "Name" "contains" "mp3"
(without the double quotes).
Author of Total Commander
https://www.ghisler.com
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

MVV wrote:You can try to find *mp3*.?* - this will find all files with mp3 in filename and with non-empty extensions. Or you can try to find *mp3*. *mp3*.?* - this will find files w/o extensions too.
*mp3*.?* finds files with ANY (non-empty) extension. mp3 too.

It should be rather
*mp3*|*.mp3
(exluding mp3 extension).
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Gral, but what if we shouldn't exclude MP3-files with mp3 in names? :wink:
curls
Junior Member
Junior Member
Posts: 10
Joined: 2003-11-18, 22:06 UTC

Post by *curls »

Thanks everyone, I'm sorted out. :)
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

MVV - "exclude the file extension" i unterstood as a "NOT MP3 files in search results at all", maybe i'm wrong - curls decides what he wants.
Christian's method works in any case of course.
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Gral wrote:MVV - "exclude the file extension" i unterstood as a "NOT MP3 files in search results at all", maybe i'm wrong - curls decides what he wants.
You're right, only topic starter knows what he wants. :)
Gral wrote:Christian's method works in any case of course.
BTW this method works like my one (it may select MP3-files too if their names contain mp3). :D
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Right, ultimate solution then is (probably):

Plugins:
Combine with - AND
"tc" "name" "contains" "mp3"
"tc" "ext" "!contains" "mp3"
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Combine with - AND
"tc" "name" "contains" "mp3"
"tc" "ext" "!contains" "mp3"
This is the same as *mp3*|*.mp3. :D
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

It seems i'm still (subconsciously?) exlude extension. :D
Post Reply