by Luuk » Thu Feb 11, 2021 1:02 am
Sorry for the poor explanations. Therubes regex does rename both the folders and files exactly the same, if Filters(12) has checkmark in "Folders".
Im almost posted exactly like him, because thinking its what you want, but he beats me to the finish line, lol.
But when you asked "remove everything beyond date" in the folders? its then revealing the folders to be renamed differently.
So then Im just converting his regex into "v2" format, so I can make two regexs, one for the files, and one for the folders.
With "v2", you can have many regexs separated by (?X), so like... RegEx-1(?X)RegEx-2(?X)RegEx-3
When Im posted, its now looking like only one regex, but its really two of them separated with the (?X) inbetween.
So its ok using mine for both. To conduct everything below a folder, the Filters(12) needs checkmark in "Folders", "Files", and "Subfolder".
Just remember not to forget setting the Extension(11) to "Remove" !!
This because the first regex already matches the extension, so not to invent any double extensions like .ext.ext.
Also, any folder names like "aaa [bbb" get renamed like "aaa" !! So if thats to be any problem, this is better to only rename when "(date)" is just before [text].
(.+\(\d\d\d\d\)) \[(.*)\](.*\..*)(?X)(.+\(\d\d\d\d\)) \[.*\][^.]*$
$1 - $2$3(?X)$1
==========================================================
So if its me, this the exact settings to use ...
RegEx(1) with checkmarks in "v2" and "Inc.Ext." using the Match and Replace...
(.+\(\d\d\d\d\)) \[(.*)\](.*\..*)(?X)(.+\(\d\d\d\d\)) \[.*\][^.]*$
$1 - $2$3(?X)$1
Extension(11) is "Remove"
Filters(12) with checkmarks in "Folders", "Files", and "Subfolder", and the "Mask" is *(*)*[*]*