#1 : 17/06-24 03:53 hiwire03
Posts: 3
|
Any way to rename a file name to only delete the text within parentheses containing a specific value? For example, only delete the text string containing UTC within parentheses of the filename. Filename (2) (2024_UTC).pdf to be renamed to Filename (2).pdf
|
#2 : 17/06-24 12:52 Miguel
Posts: 162
|
Reply to #1:
Hi Hiwire03. Use the Replace method. REPLACE: \s\(\d{1,4}_UTC\) REPLACE WITH: (Let it in empy) Use regular expression checked Apply to name Miguel |
#3 : 17/06-24 14:24 hiwire03
Posts: 3
|
Reply to #2:
Thanks a ton, work perfectly. Have a variety of text strings in file name I would like to replace but its hard to understand this syntax. Could you kindly help me with the expression that would replace (2018_04_02 00_55_51 UTC) instead of (2024_UTC) in the above file name? I tried changing the numbers in \s\(\d{1,4}_UTC\) but it didn't work. Thanks in advance |
#4 : 17/06-24 15:07 Miguel
Posts: 162
|
Reply to #3:
Hi This method will work with both examples. Use this instead of the previous one. Replace: \s\(\d{4}.*UTC\) Miguel |
#5 : 17/06-24 15:25 hiwire03
Posts: 3
|
Reply to #4:
Awesome!! Thanks a ton. Saved me a lot of labour :) |
#6 : 17/06-24 15:41 Miguel
Posts: 162
|
Reply to #5:
Glad yo help you. Miguel |