用户名和密码正则表达式效验

img

用户名正则:

reg = /^[a-zA-Z][a-zA-Z0-9]{3,16}$/

密码正则:

reg = /^\d{1,10}$/