正則表達式匹配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
提交
取消
