Answers for "how can i replace some pattern in java for string"

0

java string regexp replace

String input = "abcd";
Pattern p = Pattern.compile("regexp");
String output = p.matcher(input).replaceAll("replacement");
Posted by: Guest on March-26-2020
0

Java string replace

String a = "Cool";
a = a.replace("o","yy");
Posted by: Guest on June-07-2021

Code answers related to "how can i replace some pattern in java for string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language