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.
我用作^[a-zA-Z0-9]$密码的正则表达式,当我插入空格并提交表单时,允许输入密码。
^[a-zA-Z0-9]$
@Assert\NotBlank()是输出消息“密码不应为空”。
@Assert\NotBlank()
如何在正则表达式中解决这个问题?