I have a database where just about every file has a filename with a sortable date followed by the name of the file, such as:
2022-06-14 Receipt.pdf
2022-07-01 Bank Statement.pdf
Occasionally, a file gets misnamed such that it gets two dates, such as:
2022-07-01 2022-07-01 Property Tax.pdf
I created a smart group to find files with two dates in the name. The smart group looks like:
Where the regex is actually “^[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]\ [0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]” (without the quotes). I tested the regex at https://regex101.com with the following input:
2022-06-14 Receipt.pdf
2022-06-15 2022-06-15 Property Tax.pdf
2022-07-01 Bank Statement.pdf
And it only matched the middle line, as would be expected. However, the smart group is matching all of my documents, not just the ones with two dates.
Any hints or suggestions? Thanks!