正则表达式 删除注释

匹配单行和多行注释:

/*[sS]**/|//.*

匹配空白行:

^s*(?=
?$)

匹配换行符:


匹配空白符:

s+
原文地址:https://www.cnblogs.com/zhangyukof/p/7009483.html