for example:
String s = "1/14/2017".replaceAll("^(\\d{1,2})/(\\d{1,2})/", "$2/$1/");
this Java code will switch the place of '1' and '14'.
but The form that i want is below, unfortunately Java not supported this form
String s = "1/14/2017".replaceAll("^(\\d{1,2})/(\\d{1,2})/", "\2/\1/");
Is there any other tool can support this form?
String#replaceAllAPI does not support it.