by Luuk » Mon Aug 09, 2021 12:23 pm
Its just because " ([^ ]+ )" looks for "1-or-more non-spaces inbetween two spaces", so that group is not needed for these filenames.
I used ([^ ]+ ) as a shortcut for month names/abbreviations, only because the better month-matcher (at the bottom) was so very long.
And the match was already getting too long to fit onto just 1-line, so then Im just making it with smaller fonts, and with the shortcut.
You could change the "v2" expression by editing ([^ ]+ )20 ===> (\d\d-\d\d-|[^ ]+ )2?0? and using Replace(3) to destroy ':' .
This could let you conduct both formats all at the same time, except that Im not knowing.. What to do with the days?
Im guessing that you always like to keep the days, because \d\d being inside of the parenthesis.
For myself, Im always wanting dates to be in the same format, so Im often use '00' to say 'missing days'.
But then, you would have to edit all of your "v2" replacements like... (?X)01-00(?X)02-00(?X)03-00(?X).
If all of your filenames have either: month-names, month-abbreviations, or month-numbers, like inside of the screenshots?
Then its ok making this "v2" edit to conduct them all, but otherwise must include the very long month-matcher at the bottom.