I have a variable with this string:
Total price: 65.09 GBP
How do I extract the number 65.09 from this string and store in another variable? P.s: just the number with 2 decimals, don't need the currency after it, also, the value can be anything from 0 to 1 billion, so it could have commas also to separate the numbers.
I saw some other posts regarding this same issue using split with delimiters or substr(), but I could not adapt it to my scenario, thanks!