摘要:IPvalidates_format_of :ip, :with => /^((\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/reg = /^((\d|[1-9]\d|1\d{2}|2[0... 阅读全文
posted @ 2012-10-26 15:28 残星 阅读 (501) 评论 (0) 编辑