正则表达式匹配注释/*xxx*/String content /* xxx */String regex /\\*(?:(?!\\*/|/\\*).)*+(?:/\\
正则表达式匹配注释/*xxx*/
String content ="/* xxx */";
String regex = "/\\*(?:(?!\\*/|/\\*).)*+(?:/\\*(?:(?!\\*/|/\\*).)*+\\*/(?:(?!\\*/|/\\*).)*+)*+.*?\\*/";
content.maches(regex) == true
