I have a
String name = " abc_efg_the_xyz_24_Mar_2016.csv ";
I would like to replace 24_Mar_2016
with "18_Jan_2016"
. So that the new string becomes:
"abc_efg_the_xyz_18_Jan_2016.csv"
How can I do it?
Also the problem is that the date part in the string name will always keep changing so I can't do pattern search and replace with new date.
Please help