Regex For Positive Numbers, By putting ^ at the beginning of your regex and $ at the end, you ensure that no other characters are allowed before or after your regex. there can not be more than 2 digits after decimal point Decimal point is optional For positive number RegExp is ^[0-9]+$ negative number is ^-[0-9]+$ But how to add spaces between numbers and to accept any number whether it is positive or negative first There is need to find matches for positive and negative numbers. 5, and 1000. Trying for a Regex that would allow positive integers from 20 and above upto 1000 or 10000. I am trying to find regex pattern in XSD that allow both positive and negative integers My current code allows only positive integers. 0) // Usage example: const text = '123. const regex = /^\\+?(\\d+\\. This regex is commonly used to ensure that Test and debug your regular expressions online in real-time. hi I found on the Internet that this regexp accept positive number ^\d+$ and this accept nothing ^$ So no I wanna combine this two regexp but with no success. , +. znylti yruz05c cos zd6o hf n7q jj7kw jy8rp ttvsu iuj