public static void test2() {
String str = "張三:13539558064,李四:15626829748,趙六:13718952204";
Pattern p = Pattern.compile("1[345678]\\d{9}");
Matcher m = p.matcher(str);
while(m.find()) {
System.out.println(m.group());
}
}
public static void test2() {
String str = "張三:13539558064,李四:15626829748,趙六:13718952204";
Pattern p = Pattern.compile("1[345678]\\d{9}");
Matcher m = p.matcher(str);
while(m.find()) {
System.out.println(m.group());
}
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。