I need to match Regex for an input text. It should allow only numbers and only one dot.
Below is my pattren.
(?!\s)[0-9\.\1]{0,}
This is allowing only numbers and allowing multiple dots. How to write so that it should allow only one dot?
Bascially when i enter decimal, i need to round off to whole number.