开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜