re-order date sub-string

Advanced Renamer forum
#1 : 15/05-17 19:53
Peter
Peter
Posts: 1
Hello,

I'm trying to reorder a date string in a file name from YYYY-MM-DD to MMMDD_YY

The dates don't necessarily occur in the same place in the file name. Names are of varying length. Any ideas on how to do this is most welcome.

thanks



15/05-17 19:53
#2 : 15/05-17 22:00
Kim Jensen
Kim Jensen
Administrator
Posts: 755
Reply to #1:
Try this. Add the replace method and configure it like this:

Text to be replaced: (\d\d)(\d\d)-(\d\d)-(\d\d)
Replace with: \4\3_\2
Use regular expressions: Checked

This requires an exact pattern match. If the date pattern differs you must change the value of "Text to be replaced" accordingly.


15/05-17 22:00