Either with PHP or a RegExp (or both), how do I match a range of IP addresses?
10.210.12.12 10.253.12.12 10.210.12.254 10.210.1
Use this library: https://github.com/S1lentium/IPTools
//Check if IP is within Range: echo Range::parse('192.168.1.1-192.168.1.254')->contains(new IP('192.168.1.5')); // true echo Range::parse('::1-::ffff')->contains(new IP('::1234')); // true