re-order date sub-string

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

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.


15/05-17 19:53
#2 : 15/05-17 22:00
Kim Jensen
Kim Jensen
Posts: 804
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