第一种:
String line = "+!!!0(100000000073);+!!!0(100000000071);";
String pattern = "(?<=\\()\\d+(?=\\))";
pattern = "(\\d{16})";
Pattern r = Pattern.compile(pattern);
Matcher m = r.matcher(line);
while(m.find( )) {
System.out.println("Found value: " + m.group(0) );
}
String line = "+!!!0(100000000073);+!!!0(100000000071);";
String pattern = "(?<=\\()\\d+(?=\\))";
pattern = "(\\d{16})";
Pattern r = Pattern.compile(pattern);
Matcher m = r.matcher(line);
while(m.find( )) {
System.out.println("Found value: " + m.group(0) );
}
Found value: 1000000000314473
Found value: 1000000000314771
第二种: