Regex for checking number will miss floats with 2+ precision like 0.01, and treat str with multi dot as number like 0.1.1.1.