论坛首页 Web前端技术论坛

User name validation regular expression

浏览 1251 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-12-18  
Below regular expression used for validate a user name can only contain letters and digits, and must have at least one letter and one digits.

^.*(?=.{6,10})(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$
论坛首页 Web前端技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics