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