Regexp Java String Wymień
String input = "abcd";
Pattern p = Pattern.compile("regexp");
String output = p.matcher(input).replaceAll("replacement");
Zac
String input = "abcd";
Pattern p = Pattern.compile("regexp");
String output = p.matcher(input).replaceAll("replacement");
str.replaceAll("\\^([0-9]+)", "<sup>$1</sup>");