views:

33

answers:

1

Any suggestions on how to include double quotes ("") in this expression?

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

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}$/);
Moja Ra
Alan Moore
Hey I am just going with what works. And the I am having no issues on the form. Again I did not write this file I am just fixing the errors.
Moja Ra
what I did is this \''\-
Moja Ra