匹配C样式多行注释的Regex
我有一根绳子。
String src = "How are things today /* this is comment *\*/ and is your code /*\* this is another comment */ working?"
我想移除/* this is comment *\*/和/** this is another comment */从src绳子。
/* this is comment *\*/
/** this is another comment */
src
我试图使用regex,但由于经验不足而失败了。
jeck猫
相关分类