我在vb.net中有以下代码来验证字母数字字符,它对所有字母数字字符都正常工作,但是我想允许用户插入“*”。请为我提供上述问题的新正则表达式。允许在字母数字的正则表达式中使用*
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="revSearchCourse" runat="server" Display="Dynamic"
ControlToValidate="txtSearchCourse" ValidationExpression="^[0-9a-zA-Z]+$" ErrorMessage="The Course Name Should be Only Alphanumeric characters"></asp:RegularExpressionValidator>
</td>
</tr>
重新标记,包括正则表达式,也许改变vb.net到.NET – 2009-08-31 09:48:16