I am trying to validate dot and numbers.
Valid:
1.2.3 1.4.1 Invalid:
1.2.3. 1.2-3 1-2-3 I tried the following from another thread, it works with the valid, but it also passes the invalid with dash (-).
^\d+(.\d+)*$ Any betterment to the regex so it strict to validate only dot and digit?
Thanks