replace or remove pattern?

Advanced Renamer forum
#1 : 04/09-19 23:30
Shawn Meredyk
Shawn Meredyk
Posts: 1
Hi there,

I have several files that have date-time stamps in the filename, this was caused by Windows 10 Backup software.

Orig ex. dogFood.txt
Backup ex. dogFood (2019_01_01 23_23_23 UTC).txt

I'm looking for the best way to remove the date-time stamp and mark the multiples with a number.

dogFood.txt, dogFood1.txt, etc.

I've tried replace, but I'm not doing something correct.... any help is appreciated.


04/09-19 23:30
#2 : 05/09-19 09:07
Supun Tharanga
Supun Tharanga
Posts: 1
Reply to #1:
Using Remove Pattern

Pattern:
\(\d{4}_\d{2}_\d{2}.+UTC\)
use regular expressions
----------------------------------
Using Replace

Text to be replaced:
^(.+) \(\d{4}_\d{2}_\d{2}.+UTC\)

replace with :
$1
use regular expressions
----------------------------------
and change "Name collision rule" to number or your liking for duplicate file names to be renamed


05/09-19 09:07 - edited 05/09-19 09:21