相关疑难解决方法(0)

如何使用Perl从文件中删除多行C注释?

任何人都可以使用正则表达式来删除文件中的多行注释和单行注释吗?

例如:

                  " 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)

如果你有这个需要,我真的很感激你....提前感谢.

c perl comments

5
推荐指数
4
解决办法
1万
查看次数

标签 统计

c ×1

comments ×1

perl ×1