Greetings and Salutations!
Please help to replace
string "#xyz"with "xyz,".
Running
public class ReplaceChar {
public static void main(String[] args) {
String str = "#xyz";
String result = str.replaceAll("#(.*)", "\1,");
System.out.println(result);
}
}
outputs "," by itself.