|
||
public String getNumbers(String content) { |
||
Pattern pattern = Pattern.compile("\\d+"); |
||
Matcher matcher = pattern.matcher(content); |
||
while (matcher.find()) { |
||
return matcher.group(0); |
||
} |
||
return ""; |
||
} |
时间: 2024-10-11 13:44:02
|
||
public String getNumbers(String content) { |
||
Pattern pattern = Pattern.compile("\\d+"); |
||
Matcher matcher = pattern.matcher(content); |
||
while (matcher.find()) { |
||
return matcher.group(0); |
||
} |
||
return ""; |
||
} |