emacs - 用C注释替换C++注释(//)(/**/)

bph*_*bph 4 emacs

有没有简单的方法用emacs中//的C comment(/* */)替换C++注释()?

有人写过elisp功能吗?

或者可以应用某种聪明的正则表达式?

Ale*_*Ott 5

使用query-replace-regex或类似的函数与以下搜索字符串:^\(.*?\)//\(.*\)$和替换字符串\1/* \2 */