m = re.findall("\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}",s)
如何修改它,使其不仅可以匹配IPv4,还可以匹配CIDR之类的东西10.10.10.0/24?
10.10.10.0/24
python regex ip-address pattern-matching cidr
cidr ×1
ip-address ×1
pattern-matching ×1
python ×1
regex ×1