how can I convert the following strings to float numbers (they are written to represent numbers but sadly "," was replaced a ".") anyway, the last point is only the decimal point

```
8.500.00
900.03
1.000.000.67

```

I am looking to create a function to return them back as float numbers, output is as this

```
8500.00
900.03
1000000.6

```

I tried regex to solve such as `'\d+\.*[\.\d+]$'`, I am not sure if regex is the best way

Any help is appreciated