It is easier to use if statement to check whether the number is in range or not.
But I'm writing an interpreter so I should use regex to check the input number using regular expressions for validating numeric ranges is not recommended.



Adobe provided a lot of infrastructure to do that with just a simple script.
The Connected Enterprise is smart manufacturing using standardised, secure networks with connected, efficient and safe equipment, and visible real-time information.
It turns out that the first approach (aliteralmind's answer) is far more economical.
Speed Tests Here is the output of my simple speed test, matching from -1M to 1M.
Suggestions for category improvement are welcome; see bottom of this page to send suggestions.