asp.net - regular expression ^[A-Za-z ]+$ -
^ [AZA-Z] + $ This expression is working but it is not accepting a location, I want to accept a place like 'data base' ^ [AZA-Z] + $ is not taking place in this expression like 'database' like I need 'data base', like help me thanks. / P>
should be
& lt; Asp: RegularExpressionValidator ID = "RegularExpressionValidator1" ControlToValidate = "Textbox1" ValidationExpression = "^ [A-Za-z] + $" runat = "Server" Error Message = "Regular Express Wallet" & gt; & Lt; / Asp: RegularExpressionValidator & gt; ^ [AZA-Z] + $
As you will see in the expression, there is space after a small z, and it will allow space
Comments
Post a Comment