我需要一个给出以下字符串的正则表达式:“12.123.123/1234-11”、“12.123123123411”或“1123123/1234-11”。我只能提取数字(12123123123411);
Pattern padrao = Pattern.compile("\d+");
Matcher matcher = padrao.matcher("12.123.123/1234-11");
while (matcher.find()) {
System.out.println(matcher.group());
}
//output:12,123,123,1234,11,
//I need: 121231234123411
谁能帮我?