I have the below string in arabic
دار لعادي ٢٠٠ موج
I want to get only the number so the output:
٢٠٠
the below will not work because to consider only english or latin:
try (BufferedReader reader = Files.newBufferedReader(p1, charset)) {
String line = null;
while ((line = reader.readLine()) != null) {
String str = line;
str = str.replaceAll("[^\\d.]", "");
}
I tried to use this Character.isDigit(char ch)
but I have String