I have many files with names in this format:
17_2020-02-16-130749.csv
What I'd like to do is replace the last occurrence of the dash with an underscore. The final result should be this:
17_2020-02-16_130749.csv
I've tried this: .*(-.*?) and that gives the group 1 as the last dash, but I don't know how to actually replace it with the underscore.
Any help is appreciated!