Does any one know how to include double quote in regular expression.I wrote this regex but unable to include the double quote
<asp:RegularExpressionValidator ID="KeywordsRegex" runat="server" 
 ValidationExpression="^[+\-\!\(\)\:\^\[\]\{\}\~\*\?\&&\||].*$" 
 ControlToValidate="Keywords" ErrorMessage="Search keyword is not valid." 
 Text="*"></asp:RegularExpressionValidator> 
                Try putting a backslash (\) followed by ". That would be proper XML.
have you tried escaping the double quote with a backslash?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With