I have a string for e.g.
String src = \"How are things today /* this is comment *\\*/ and is your code /*\\* this is another comment */ working?\" >
String src = \"How are things today /* this is comment *\\*/ and is your code /*\\* this is another comment */ working?\"
This could be the best approach for multi-line comments
System.out.println(text.replaceAll("\\/\\*[\\s\\S]*?\\*\\/", ""));