#1 : 17/09-24 01:59 Tavo
Posts: 5
|
Hello there…
I have broken my head figuring out but to no avail :( I appreciate any guidance on how to replace a given letter or character that is crammed between numbers on a filename (not extension) with a specific word with the correspondent spaces before the new word and after it ex. of existing file name: "letter b for word Build" FileName5.6.4b534.exe for this new one: FileName5.6.4 Build 534.exe ...other example of the same: "character _ for word Build" FileName3.1_749.exe for this new one: FileName3.1 Build 749.exe Thanks in advance! |
#2 : 17/09-24 06:10 Delta Foxtrot
Posts: 323
|
Reply to #1:
Hi Tavo, welcome, If those are the only two characters to replace, and the characters are always jammed between two numbers, and that combination doesn't occur anywhere else in your filenames, here's how you do it: REPLACE method: Replace: (\d)(b|_)(\d) Replace with: $1 Build $3 Occurrence: All Case sens.: Checked Use regular expressions: Checked Apply to: Name ...and you're done. If there are other characters that you need to replace with " Build " you can just add them to the second set of parentheses, just add another pipe character "|" between them. Best, DF |
#3 : 17/09-24 08:23 Tavo
Posts: 5
|
Reply to #2:
The solution worked like a charm! Much respect DF, great community here, really appreciate it! |