import java.util.regex.Matcher;
import java.util.regex.Pattern;
String aa = “wo的12test”
String regEx="[^0-9]";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(aa);
int reviewsCount = Integer.parseInt(m.replaceAll("").trim());
import java.util.regex.Matcher;
import java.util.regex.Pattern;
String aa = “wo的12test”
String regEx="[^0-9]";
Pattern p = Pattern.compile(regEx);
Matcher m = p.matcher(aa);
int reviewsCount = Integer.parseInt(m.replaceAll("").trim());