rename timestring

Advanced Renamer forum
#1 : 20/02-21 07:49
Wally
Wally
Posts: 1
Can't seem to figure out how to rename a time-string like 122347 to 12.23.47.
Suggestions are welcome ;)


20/02-21 07:49
#2 : 20/02-21 09:20
David Lee
David Lee
Posts: 614
Use a Replace method with a regular expression - read the User Guide:
www.advancedrenamer.com/user_guide/regular_expresions

If the time-string is at the beginning of the filename simply...
Replace: (\d\d)(\d\d)(\d\d)
with: \1.\2.\3
Use regular expressions.

Otherwise you will need also to match whatever comes before the time-string.

eg if the time-string is the first string of numerical digits then...
Replace: .*\K(\d\d)(\d\d)(\d\d)
with: \1.\2.\3

".*" will match a string of any characters of any length (including zero) and "\K" is an instruction to exclude previously matched characters from the final match.


20/02-21 09:20