摘要: 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 残星 阅读(1745) 评论(0) 推荐(0) 编辑