Arbitrary Currency String - Get all parts separated?
问题 I have arbitrary String with currencies like 100,00€ or $100.00 or 100.00USD (arbitrary lenght, any valid Currency on earth both Symbol and ISO-Code )...(=like 100.000.000,00 EUR ). There is no guarantee that the currencies are correct, it might be an invalid Symbol or Character or at the wrong position (after or before the number)... What is the easiest way to get: The integer part The decimal part The Currency (if valid) I know of NumberFormat/CurrencyFormat but this class is only usefull