体重:var weightReg = /^(0(\.\d{1}){0,1}|[1-8]\d{1,3}(\.\d{1}){0,1}|9\d{1,2}(\.\d{1}){0,1}|999(\.0){0,1}|.{0})$/; 身高:var heightReg = /^(0{1}|[1-9]\d{0,3}|.{0})$/; 视力:var visionReg = /^(0\.\d{1}|[1-4]{1}(\.\d{1}){0,1}|5(\.0){0,1}|.{0})$/; 地址:var schoolReg = /^([\u4e00-\u9fa5a-zA-Z0-9]{0,50})$/; 描述: var schoolLifeReg = /^([\u4e00-\u9fa5a-zA-Z0-9\,.:;'"!/?,。:;‘’“!?、]{1,200}|.{0})$/;
原文链接:https://www.f2er.com/regex/358192.html