Can you please advice solution in Java to validate number formats. As input param I receive String. For example, there is Europe format: 1.234,56 Then I do parsing:
NumberFormat.getNumberInstance(locale).parse(value)
But before parsing I need validation. Example of input data: 1..234,,56 - shouldn't be valid but it parsable