任何人都可以使用正则表达式来删除文件中的多行注释和单行注释吗?
例如:
" WHOLE "/*...*/" HAS TO BE STRIPED OFF....."
1. /* comment */
2. /* comment1 */ code /* comment2 */ #both /*comment1*/ and /*comment2*/
#has to striped off and rest should
#remain.
3. /*.........
.........
.........
......... */
Run Code Online (Sandbox Code Playgroud)
如果你有这个需要,我真的很感激你....提前感谢.