What I posted is fairly general.
What Luuk posted is more exacting & is looking for a "description" that is actually (prefaced by a spaced &) enclosed within [ ] (with nothing at all following).
So with my example files, their would be no matches found.
If I remove the 123 from the end of the filename, then it would work as wanted.
Luuk's could be more generalized too.
- Code: Select all
Match: ^(\d\d-\d\d)-((19|20)\d\d)( .*)$
The ( .*)$ simply says, accept a space and anything else that follows.
If you change it to (.*)$, then the space is not even needed, so "01-01-2022[Description]" would also match.