var isIp = /^(([1-9][1-9]?)|([2-9]0)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5]))(\.(0|(([1-9]\d?)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5])))){3}(,((([1-9][1-9]?)|([2-9]0)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5]))(\.(0|(([1-9]\d?)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5])))){3}))*((-(0|(([1-9]\d?)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5]))))?((,((([1-9][1-9]?)|([2-9]0)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5]))(\.(0|(([1-9]\d?)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5])))){3}))+(-(0|(([1-9]\d?)|(1\d{2})|(2[0-4][0-9])|(2[5][0-5]))))?)*)$/;
正则表达式
最新推荐文章于 2024-05-20 10:35:51 发布