M
M
Michael_Mel2018-06-16 19:58:36
Regular Expressions
Michael_Mel, 2018-06-16 19:58:36

Regular expression for number Float (with one dot)?

there is a good expression

onkeyup="this.value = this.value.replace(/[^0-9\.]+/g, '');"

but it misses 34.....19
Is there a solution with one point?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-06-16
@0xD34F

[0-9]+\.[0-9]+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question