Link to home
Create AccountLog in
Avatar of Aliencenet
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.
User generated image
There is a button next to it which shows some help information but I'm unable to decipher it.
here it is:
User generated image
Need help with the right regex syntax to rename files with variable dates.
Avatar of arnold
arnold
Flag of United States of America image

The problem is that your example does not reflect the changes you want




What is the application that you are using?
ASKER CERTIFIED SOLUTION
Avatar of Harisha M G
Harisha M G
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Aliencenet
Aliencenet

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?