1.验证整数或小数:^\d{0,}[.]?\d{1,}$
2.验证IP:^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$
原文链接:https://www.f2er.com/regex/361823.html1.验证整数或小数:^\d{0,}[.]?\d{1,}$
2.验证IP:^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$
原文链接:https://www.f2er.com/regex/361823.html