This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. 用户名正则表达式模式(测试代码请下载) | |
^[a-z0-9_-]{3,15}$ | |
^ # 行开始 | |
[a-z0-9_-] # 匹配列表中的字符,a-z,0–9,下划线,连字符 | |
{3,15} # 长度至少3个字符,最大长度为15 | |
$ # 行结束 | |
2. 密码正则表达式模式 |