#1 : 09/04-19 14:54 black
Posts: 4
|
Hi,
I have alot of time stamped file in Windows's recovery file history folder. So i want to recover all files by renaming. Example filenames structure "SharewareOnSale_Taghycardia_Pro_hub (2017_12_19 19_12_23 UTC).exe" or "ADB-Driver-v1.4.2 (2017_12_19 19_22_31 UTC).exe" How can i remove that ( *.* ) date/time information without any blank letter.? Thanks in advance |
#2 : 09/04-19 17:25 David Lee
Posts: 1125
|
It's not completely obvious what you are asking.
I assume that you want to remove the date/time string in parentheses, including the leading space ie yielding: SharewareOnSale_Taghycardia_Pro_hub.exe and ADB-Driver-v1.4.2.exe" If so then just use the Replace method with a Regular Expression... Replace: " \(.*\)$" (note the leading space) with: blank |
#3 : 11/04-19 22:34 black
Posts: 4
|
Great expression. Its worked.
Thanks so much. |
#4 : 01/10-19 15:07 Asif Rafique
Posts: 1
|
Reply to #2:
can you elaborate a little bit step by step. i have the same problem. |
#5 : 03/10-19 10:14 David Lee
Posts: 1125
|
Reply to #4:
See https://www.advancedrenamer.com/user_guide/regul ar_expresions Parentheses - "(" & ")" - have special meanings in regular expressions. In order to represent themselves they must be prefixed by the escape character "\" ie "\(" & "\)". "." represents any character and "*" means match the preceding character zero or more times "$" represents the end of the line So the the regex " \(.*\)$" will match a string comprising: space + "(" + any number of characters + ")" at the end of the line. |