小编key*_*ey2的帖子

正则表达式匹配字母数字字符和&符号(&)

我需要正则表达式来搜索字符串 alphanumeric, (, ), -, ., / and ampersand(&).

现在我在客户端验证中使用此正则表达式

 [^A-Za-z0-9.)(/-\&]
Run Code Online (Sandbox Code Playgroud)

编辑:

我想在我的字符串中搜索特殊字符 VAL.search(/[^A-Za-z0-9.)(/-\&]+/g)==-1

regex

15
推荐指数
1
解决办法
6万
查看次数

标签 统计

regex ×1