I have a Array of Strings
scala> tokens res34: Array[String] = Array(The, value, of, your, profile, is, 234.2., You, have, potential, to, gain, 8.3, more.) >
With Regex, you can use this code to catch all the numbers:
\d+\.?\d+
Demo: https://regex101.com/r/pZomjn/1