英文:
How can I prevent users from entering non-alphanumeric characters in a Google Sheet
问题
我尝试在列H上使用数据验证,应用自定义公式:=REGEXMATCH(H1, "^[a-zA-Z0-9]+$");但毫无效果,Google表格告诉我这个公式无效。2020年时它还有效。Google改了什么吗?
英文:
I tried using the Data Validation on the column H by applying the custom formula: =REGEXMATCH(H1, "^[a-zA-Z0-9]+$"); but to no avail, Google Sheets tells me that this formula is invalid.
Back in 2020 it worked. Did Google change something?

答案1
得分: 1
从截图看,表格区域使用分号 ; 而不是逗号 ,
使用 =REGEXMATCH(A1; "^[a-zA-Z0-9]+$")
英文:
From the screenshot it looks like the sheet locale uses semicolon ; convention instead of ,
go with =REGEXMATCH(A1; "^[a-zA-Z0-9]+$")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论