I have a method that determines if a string is a number:
public static boolean isNumber(String num) { return num.matches("(\\p{N})+"); }
The above method successfully matches English, Hindi, Arabic numerals, but does not match Chinese numbers:
三 十萬 零 二百 二百 etc.
Is it possible to create a regular expression that can match a number from any language (or main languages)?
edit: the number will not be decimal, it will be used to check the phone number.
source share