There is a string that can be of this type.
100.15.98 And maybe this
940.56 It seems like str.match (reg) should fit with the g flag, but not how can I figure out how to apply it.
At the output, you need something if the string has 2 points, then replase ('.', '') (First entry), and if there is 1 point, do not touch it.