Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找用户名的正则表达式
我想允许:
干得好
^[-0-9A-Za-z_]{5,15}$
请注意 - 放在字符类的第一位,否则它将获得指示范围的含义,如 0-9 = 0 到 9