I'm very new to regex. How do I match a decimalised number. I have found ones that include $ but just need to match any number which could include decimals.
e.g.
100 100.50 707.40 150.00
I'm very new to regex. How do I match a decimalised number. I have found ones that include $ but just need to match any number which could include decimals.
e.g.
100 100.50 707.40 150.00
It's not very advanced, but:
/\d.*?\.\d.*/
Will match:
2.0 12.00
Won't match:
2 22
Doesn't check if it's a number though.