I’ve encountered a problem that stumps my rudimentary regex skill. I have a number of files with dates in the filenames. I need for those dates to be placed in parentheses. Thus,
Acme annual contract 2017-05-11.pdf
needs to become
Acme annual contract (2017-05-11).pdf
This worked for a while. Then I had a system problem and had to rebuild. I didn’t have a backup of this script, and pulled another copy from the linked page. The fresh one does not work. Is it possible that the site has reverted to the non-functional script, or do I have another problem? Thanks.