public [^s]
匹配 public 不是static 的方法, 比如public Integer getInt(){}
/\*[\s\S]*?\*/
最短匹配 /* ... */ 注释
\*: 转义*
[\s\S]*: 匹配任意字符(包括字符和非字符)
[\s\S]*?: 最短匹配任意字符
public [^s]
匹配 public 不是static 的方法, 比如public Integer getInt(){}
/\*[\s\S]*?\*/
最短匹配 /* ... */ 注释
\*: 转义*
[\s\S]*: 匹配任意字符(包括字符和非字符)
[\s\S]*?: 最短匹配任意字符