Using TextField to place double/integer numbers, want to change any number with "," to number with "." and remove multiple dots and commas.
String test = "0....,,,,,,,....754568";
test.replaceAll(<?IDK?>, ".");
<?IDK?> means that I don't know what to put there.
Examples:
4,5 → 4.5
6,,,,2 → 6.2
0....,,,,,,,....754568 → 0.754568
7...2 → 7.2