Copy files dialog: How to define files to copy on a part of it name ? (RegEx, wild cards)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Joeyy
Junior Member
Junior Member
Posts: 61
Joined: 2016-09-20, 10:09 UTC

Copy files dialog: How to define files to copy on a part of it name ? (RegEx, wild cards)

Post by *Joeyy »

In copy files dialog, I can filter file type, but it can only support file type (like *.css), if I want to filter ".+dark.+.css" (regex, just for showing my purpose), i.e., css files include "dark "in filename, what should I do?
Image: https://s21.ax1x.com/2024/04/15/pFvbDJ0.png







Subject line adjusted by Moderator
Please always use expressive words/sentence, which describe most exactly what this thread is about.
Do you have a question, a feature request or wish, or do you just provide us a tip. Thank you ;-).
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Re: Problem about copy files dialog

Post by *Sir_SiLvA »

if you want only css files with "dark" in the filename it would be

Code: Select all

*dark*.css
PS: press F1 in the filetype box and read the help :D
Hoecker sie sind raus!
User avatar
Stefan2
Power Member
Power Member
Posts: 4159
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Problem about copy files dialog

Post by *Stefan2 »

Instead of RegEx-filter:
filter ".+dark.+.css"


use more * wildcard joker-sign to show where it should be variable:
filter "*dark*.css"



You can also use the F8-button and define your pattern via a search, where you can also use plugins or combination of criteria.
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Problem about copy files dialog

Post by *white »

Try:

Code: Select all

<.+dark.+\.css
User avatar
petermad
Power Member
Power Member
Posts: 14810
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Problem about copy files dialog

Post by *petermad »

2Joeyy
In the copy dialog you can press F8 and then define a search for .+dark.+.css - select the RegEx box and save the search (name it for example darkcss). You can now find >darkcss in the "Only files of this type" dropdown list"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply