Is there a generic way or regex that handles all possible number formats in string and converts to correct number. For example:
"1.234,21" to 1234.21
"1,234.21" to 1234.21
"1234,21" to 1234.21
"1234.21" to 1234.21
"1,234,567.21" to 1234567.21
"1.234.567,21" to 1234567.21
Edit: Should also handle
"1,234,567" to 1234567
"1.234.567" to 1234567