IPv4 regex

private static Regex ipv4Reg = new Regex("^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$");

猜你喜欢

转载自wanzhanzhuce.iteye.com/blog/2303767