String url = "http://news.163.com/15/0819/10/B1CI2FD90001124J.html";
String regexP0 = "(\\d{9})";
Pattern p = Pattern.compile(regexP0);
Matcher m = p.matcher(url);
String Px = null ;
while(m.find()){
Px = m.group();
//Px = m.group(1); }
原文链接:https://www.f2er.com/regex/360051.html