I was doing validation which accepts some special characters, dashes, quotes, apostrophe etc.
here is the code:
jQuery.validator.addMethod("cityvalidation", function (value, element) {
return this.optional(element) || /^[a-zA-Z\u0080-\u024F\s\/\-\)\(\`\.\"\'\U+2019]+$/i.test(jQuery.trim(value));
}, "You Have Typed Unallowed Charactors");
it is working fine unless if somebody copy quotes or apostrophe from MS Word, then the validation gives else error "You Have Typed Unallowed Charactors" as it does not accept quotes and apostrophe from MS Word.
Please suggest if there is any unicode or character for MS Word quotes and apostrophe that can also bee added in the Validation Regex.