标签:main mat throw str stat row string match []
public static void main(String args[]) throws Exception {
Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
Matcher m = p.matcher("15811566026"); System.out.println(m.matches()+"---");
}
标签:main mat throw str stat row string match []
原文地址:http://www.cnblogs.com/Ming-Yang-Xu/p/7049757.html