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.
有人知道如何制作正则表达式以不允许用户在字段中输入数字吗?这似乎是:
/** * @Assert\Regex("/^\w+/") */
问候。谢谢
也许这项工作。(未测试)
/** * @Assert\Regex("/^[^0-9]+$/") */