正则表达式匹配C风格的多行评论我有一个字符串,例如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串。我尝试使用正则表达式但由于经验不足而失败。
3 回答

慕码人8056858
TA贡献1803条经验 获得超6个赞
添加回答
举报
0/150
提交
取消