Hello Your Wisenessess,
Is there a smart way to check whether a number is within a range such as 0-255 using a regex without having to something ugly like:
^[0-9]{1,2}$|^1[0-9]{2}$|^2[0-4][0-9]$|^25[0-5]$?
In reply to Regexp for range of numbers by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |