Java regex matching for substring replacement
1 answer
Have a look at the explanation of regex in the java docs :
string = string.replaceAll("stuff=\"-?\\d+\"", "stuff=\"0\"");
+4
source to share