I am currently learning regex but need this quite urgently.
I have a set of values (10, 19.5, 13.99, 9.09). These formats are fine except for the second value.
My problem is how to rewrite so that 19.5 becomes 19.50 without affecting the other entries i.e (10, 19.50, 13.99, 9.09)
Many thanks guys.
If these are numbers, use toFixed()
If these are strings, you can use