You are not logged in.
Pages: 1
I have thousands of files in the following format:
Filename 1 (A101 8.2 S3)
Filename 2 (A5 9 R14B)
Filename 3 (A45 27 M24)
How would I rename them to:
Filename 1 (S3)
Filename 2 (R14B)
Filename 3 (M24)
I know RegEx is the answer, just can't figure it out.
Thanks.
Offline
The following regular expression should do the job...
Expression: \(.*?\b([\w\d]+)\)
Replace: ($1)
Sample input:
Filename 1 (A101 8.2 S3)
Filename 2 (A5 9 R14B)
Filename 3 (A45 27 M24)
Filename 5 (TEST)
Output:
Filename 1 (S3)
Filename 2 (R14B)
Filename 3 (M24)
Filename 5 (TEST)
Offline
Fantastic den4b! On using it, I realize the output would look better without the brackets.
How would I return just the number?
Last edited by BadDogTitan (2019-05-24 13:30)
Offline
Fantastic den4b! On using it, I realize the output would look better without the brackets.
How would I return just the number?
Try to adjust the "Replace:" statement.
Just play around, it's easy:)
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
BadDogTitan wrote:Fantastic den4b! On using it, I realize the output would look better without the brackets.
How would I return just the number?
Try to adjust the "Replace:" statement.
Just play around, it's easy:)
And, BadDogTitan, how did it worked out?
Read the *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)
Offline
Sorry, Stefan. Haven't been back for a while. Worked out famously. Also, I found the Regular Expression tool on the website, which is a great help.
Offline
Pages: 1