Java 代码提取字符串中的 IP 地址和掩码
String str = 'rule 0 deny ip destination 30.18.74.0 0.0.0.255'; String[] parts = str.split(" ");
String ruleNumber = parts[1]; String ipDestination = parts[5]; String ipMask = parts[6];
原文地址: https://www.cveoy.top/t/topic/b25x 著作权归作者所有。请勿转载和采集!