my $re =qr/ ^(\d{1,3})$ # Up to 3 digits (?(?{ ($1<256 and $1>=0) }) # If in the correct range .? # An allways match | # Else . # Never going to match after e +nd of string ) /x;
In reply to Re: Regexp for range of numbers
by deibyz
in thread Regexp for range of numbers
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |