I have this pattern:
[0-9]*\.?[0-9]
It matches numbers but it also matches 3.5.4 as:
- 3.5
- .4
How to fix that(this input shouldn't be matched)?
UPDATE:
this also should work on input:
1 3.5.4 10
1.2. is not allowed
.3 is allowed
any char that is not poart of numer is not allowed, like: a1 2.4f 3. 45, 67!