I'm trying to test a string to make sure it's a number.number.number.
Example would be 10.8.1
I found this regex /^d+$/
tests for a number, but how can I add the dots condition?
I'm trying to test a string to make sure it's a number.number.number.
Example would be 10.8.1
I found this regex /^d+$/
tests for a number, but how can I add the dots condition?