📜  regex ip rage detect c# 代码示例

📅  最后修改于: 2022-03-11 14:49:00.204000             🧑  作者: Mango

代码示例1
//Example 192.168-192.178
//192.168.0.1-192.168.0.255
(?(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])([\.]*)){4})-(?(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])([\.]*)){4})$