是否有任何人知道如何包含常规expression.I双引号写这个正则表达式,但不能包括双引号如何包括双引号(“)在正则表达式
<asp:RegularExpressionValidator ID="KeywordsRegex" runat="server"
ValidationExpression="^[+\-\!\(\)\:\^\[\]\{\}\~\*\?\&&\||].*$"
ControlToValidate="Keywords" ErrorMessage="Search keyword is not valid."
Text="*"></asp:RegularExpressionValidator>
这解决它definitelly \ 22 \ 42。 http://stackoverflow.com/questions/1616190/quotes-inside-validationexpression-for-regularexpressionvalidator – 2015-01-19 19:28:14