I can\'t figure out how to construct a regex for the example values:
123,456,789 -12,34 1234 -8
Could you help me?
In java, You may use java.util.Scanner with its useLocale method
java.util.Scanner
useLocale
Scanner myScanner = new Scanner(input).useLocale( myLocale) isADouble = myScanner.hasNextDouble()