Renaming a File
Hi, I have list of filenames with a separator '_' in the filename , I would like to replace the file name with the value between the 1st separator and 2nd separator.
Example:
File Name : XYZD1_newfilename_njAHDKH_TEST234.pdf should be replaced as newfilename.pdf
Is it possible with Advanced Renamer. If yes, How to do this or which method to be used.
Best Regards,
Srini
Example:
File Name : XYZD1_newfilename_njAHDKH_TEST234.pdf should be replaced as newfilename.pdf
Is it possible with Advanced Renamer. If yes, How to do this or which method to be used.
Best Regards,
Srini
Reply to #1:
Assuming you always have 3 separators in your original file name:
New Replace Method --> Tick on 'Use Regular Expressions'.
Text to be replaced : ^(.*)_(.*)_(.*)_(.*)
Replace With : \2
Apply to : Name
Assuming you always have 3 separators in your original file name:
New Replace Method --> Tick on 'Use Regular Expressions'.
Text to be replaced : ^(.*)_(.*)_(.*)_(.*)
Replace With : \2
Apply to : Name
Reply to #1:
Replace: [^_]*_([^_]*).*
with: \1
Replace: [^_]*_([^_]*).*
with: \1