The regular expression that will only allow decimal input is:
^[0-9]+(.[0-9]+)?$
This expression will allow for any positive or negative decimal number, with or without leading zeros, and can also handle decimal numbers with or without a decimal point.
Asked: 2023-04-29 00:22:47 +0000
Seen: 16 times
Last updated: Apr 29 '23