There must be a better way.if ($number =~ /12[89]/ ||$number =~ /1[3-9]\d/ ||$number =~ /2\d\d\/) + { $match = 1; }
For the more general subnetting problem I'm thinking I probably need to work in binary and doing the AND's and OR's etc. does anyone know of some example Perl code.
In reply to regex for classless IP subnets by permanentE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |