I am trying to remove whitespaces at a particular region in a string to obtain a certain output.

The different sets of string that I have are:

```
gehehntk 45.5 % 43 - 83 5243 /g.mt 25674 - 65748
bin 9.6 md% 346347 - 36537 
tub 31.8 % 3658 - 5585  calci

```

So the output I want is:

```
gehehntk 45.5 % 43-83 5243 /g.mt 25674-65748
bin 9.6 md% 346347-36537 
tub 31.8 % 3658-5585  calci

```

I tried with a regex but was unable to achieve the output:

```
r"\b.*?\s(\d+(?:\.\d+)?)(?!\S)"

```