pub fn is_ipv4(text: &str) -> bool
正则表达式验证
正则表达式:r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"