I have a load of files with the date in the format 01-Feb-01
however need in the format 01/02/01
. I've come across examples where the month is just 2 digits but how do i handle months with 3 letters?
Thanks.
I have a load of files with the date in the format 01-Feb-01
however need in the format 01/02/01
. I've come across examples where the month is just 2 digits but how do i handle months with 3 letters?
Thanks.
Seems to me that there's no other way, than to make 12 replace in files for every month, with regex like this:
find what:
(\d{2})-jan-(\d{2})
(\d{2})-feb-(\d{2})
replace with:
\1/01/2
\1/02/2
And so on (ignore case option on, ofcourse). If there's a way to replace a list of subpatterns with a list of replacements, I'd happy to get to know it. But for now it's all I've got :).