rep='/d{1,2}|1/d/d|2[0-4]/d|25[0-5]'
x=/^(#{rep})/.(#{rep})/.(#{rep})/.(#{rep})$/
p "ok!" if strTestIP =~ x
时间: 2024-10-02 04:11:06
rep='/d{1,2}|1/d/d|2[0-4]/d|25[0-5]'
x=/^(#{rep})/.(#{rep})/.(#{rep})/.(#{rep})$/
p "ok!" if strTestIP =~ x