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.
我想要一个包含字母和数字字符且必须至少为 8 个字符的正则表达式。所有字符都可以是字母或数字。我的表达式是
^[a-zA-Z0-9]*$
请纠正它不占用 8 个字符,我是第一次使用它
您可以使用:
^[a-zA-Z0-9]{8,}$