我需要正则表达式来搜索字符串 alphanumeric, (, ), -, ., / and ampersand(&).
alphanumeric, (, ), -, ., / and ampersand(&).
现在我在客户端验证中使用此正则表达式
[^A-Za-z0-9.)(/-\&]
编辑:
我想在我的字符串中搜索特殊字符 VAL.search(/[^A-Za-z0-9.)(/-\&]+/g)==-1
VAL.search(/[^A-Za-z0-9.)(/-\&]+/g)==-1
regex
regex ×1