Regex-Rename with backreferences
Posted: 05 Aug 2019 09:32
Hi all
I have a bunch of files with a similar filename:
19-05-01_onetwothree.pdf
19-06-02_anotherone.pdf
The first 6 characters are the date these files were created (I get them from my insurance that way). Now I'd like to rename them to match my file naming conventions (YYYYMMDD_....). On a unix system, I would probably do something like this (untested):
Is there a way to do this in XYplorer? In the help, there's only one example, where the regex is used to match the files to be renamed.
Thanks in advance
André
I have a bunch of files with a similar filename:
19-05-01_onetwothree.pdf
19-06-02_anotherone.pdf
The first 6 characters are the date these files were created (I get them from my insurance that way). Now I'd like to rename them to match my file naming conventions (YYYYMMDD_....). On a unix system, I would probably do something like this (untested):
Code: Select all
s/^([0-9]{2})-([0-9]{2})-([0-9]{2})_/20\1\2\3_/
Thanks in advance
André