常用正则记录

判断是否为正确的ip地址:/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/ 

posted @ 2020-01-07 17:01  虎太郎的小肚腩  阅读(123)  评论(0编辑  收藏  举报