regex pro float
[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)
JS řetězec pouze pozitivní float čísla
if ("10".match(/^(?!0\d)\d*(\.\d+)?$/)) {
console.log('match')
} // expected output: 'match'
// matches
// 10.0
// 0.10
// 123.456
// Does not match
// a1
// 00.10