The following regex is unable to match backslash or forward slash: -
(以下正则表达式无法匹配反斜杠或正斜杠:-)
var reg = /^[a-zA-Z0-9-_*\/]*$/; var validText = reg.test('\/'); console.log(validText);
Any help shall be greatly appreciated!
(任何帮助将不胜感激!)
(谢谢!)
1.4m articles
1.4m replys
5 comments
57.0k users