开发者

I have an issue with secret question input regular expressions In Javascript

开发者 https://www.devze.com 2023-01-15 08:06 出处:网络
Any suggestions on how开发者_JAVA百科 to include double quotes (\"\") in this expression? InputField(\"tSecAnswer1\", /^(?=.*[a-zA-Z\\d])(\\w|[\\s\\.\\@\\-\\?\\,\\&\\/\\_\\#\\+\\(\\)\\\"\'\"]){3,

Any suggestions on how开发者_JAVA百科 to include double quotes ("") in this expression?

InputField("tSecAnswer1", /^(?=.*[a-zA-Z\d])(\w|[\s\.\@\-\?\,\&\/\_\#\+\(\)\"'"]){3,50}$/);


Here is how I fixed the issue with including a single and double quote in my regular expression.

InputField("tSecAnswer2", /^(?=.*[a-zA-Z\d])(\w|[\s\.\@\-\?\,\&\/\_\#\+\(\)\"'"\'"']){3,50}$/);
0

精彩评论

暂无评论...
验证码 换一张
取 消