非负实数 ^[+]{0,1}(d+)$|^[+]{0,1}(d+.d+)$
正整数 ^d+$
邮箱 ^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.){1,4}[a-z]{2,3}$
验证控件
正则表达式
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtUnitprice"
ErrorMessage="数量格式不正确" ValidationExpression="^[+]{0,1}(d+)$|^[+]{0,1}(d+.d+)$"
Display="Dynamic">数量格式不正确</asp:RegularExpressionValidator>