Aliencenet
asked on
Regular expression for renaming files on SFTP
I have SFTP application that has an option to rename files.
I'm trying to rename the folllowing file names with variable dates:
example 1: 20120101_test to 20120101_test_renamed ( where <yyyymmdd> varies).
example 2: test_20120101_test to renamed_20120101_test (date varies as well).
It requires regular expressions to rename the target file to a different file name.
Here is a screenshot for entering regex: the code that you see is something I played around with.
There is a button next to it which shows some help information but I'm unable to decipher it.
here it is:
Need help with the right regex syntax to rename files with variable dates.
I'm trying to rename the folllowing file names with variable dates:
example 1: 20120101_test to 20120101_test_renamed ( where <yyyymmdd> varies).
example 2: test_20120101_test to renamed_20120101_test (date varies as well).
It requires regular expressions to rename the target file to a different file name.
Here is a screenshot for entering regex: the code that you see is something I played around with.
There is a button next to it which shows some help information but I'm unable to decipher it.
here it is:
Need help with the right regex syntax to rename files with variable dates.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
It is Axway SecureTransport
Unfortunately, there is no public access to the documentations.
Do you have a specific criteria on how you decide whether the filename have the _renamed or renamed_ as the change or how the date should be changed?
Do you have a specific criteria on how you decide whether the filename have the _renamed or renamed_ as the change or how the date should be changed?
What is the application that you are using?