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
Both of these return:
Acme annual contract ().pdf
What am I doing wrong?