ip+掩码

pattern="/^(((?:(?:1[0-9][0-9].)|(?:2[0-4][0-9].)|(?:25[0-5].)|(?:[1-9][0-9].)|(?:[0-9].)){3}(?:(?:1[0-9][0-9])|(?:2[0-4][0-9])|(?:25[0-5])|(?:[1-9][0-9])|(?:[0-9]))))(/[23][42])?$/"
原文地址:https://www.cnblogs.com/shenjilin/p/8616950.html