匹配单行注释:\/\/.*$
;
匹配多行注释:\/\*(\*)?(((?!\*\/)[\s\S])+)?\*\/
。
来源:How to delete all comment lines in IDEA?
标签:comment,Java,正则表达式,注释,How,匹配 From: https://www.cnblogs.com/Higurashi-kagome/p/16818716.html
匹配单行注释:\/\/.*$
;
匹配多行注释:\/\*(\*)?(((?!\*\/)[\s\S])+)?\*\/
。
来源:How to delete all comment lines in IDEA?
标签:comment,Java,正则表达式,注释,How,匹配 From: https://www.cnblogs.com/Higurashi-kagome/p/16818716.html