62,265
社区成员
发帖
与我相关
我的任务
分享
string ss1 = this.textBox1.Text;
System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"^[a-zA-Z][_0-9a-zA-Z]{5,17}$");
if (!regex1.IsMatch(ss1))
{
MessageBox.Show("必须是字母开头,6-18位,字母或者数字下划线组成");
}
用Jquery写啊!