Hi, I have a regex that validates a decimal value Eg 10.0 var re = /[0-9]+.[0-9]+/; But I want a regex that can validate either a decimal or non-decimal value Eg 10.0 or 10 How can I do this? Thx
Help @mili spread the word by sharing this article on Twitter...