Local $sFile = '汉字' If Not StringRegExp($sFile, "/^[\u4e00-\u9fa5]+$/") = 1 Then MsgBox(0,0,"非法输入")
举报
Local $sFile = '汉字' If Not StringRegExp($sFile, "^[\x{4e00}-\x{9fa5}]+$") = 1 Then MsgBox(0,0,"非法输入")
afan 发表于 2023-11-9 22:06
smooth 发表于 2023-11-10 21:05 我忘记单位名称里面,可能会包含中文半角小括号(),请教A大,能帮忙修正一下吗?我没有测试出来。谢谢 ...
Local $sFile = '(汉字)' If Not StringRegExp($sFile, "^[\x{4e00}-\x{9fa5}\(\)()]+$") = 1 Then MsgBox(0,0,"非法输入")
afan 发表于 2023-11-10 21:07
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-3 23:21 , Processed in 0.105133 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.