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.
我有这样的名字和姓氏验证
regex_match[/^[a-zA-Z \'-()]{0,25}+$/]
有没有我错过的角色?我怎么知道名字和姓氏可以例外的字符。
还是名称有 regex_match?
尝试这个
regex_match[^[A-Z]'?[- a-zA-Z]( [a-zA-Z])*$]
如果你需要像 Jérémie O'Co-nor 这样的名字
regex_match[^([ \u00c0-\u01ffa-zA-Z'\-])+$]