I'm sure you have your reasons for wanting to do this with a regular expression , but surely the smart way to do it would be:
numeric comparison is going to be faster as that is something that computers can do natively.$number >= 0 and $number <= 255
/J\
In reply to Re: Regexp for range of numbers
by gellyfish
in thread Regexp for range of numbers
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |