zhouzangood

if (this.txtEmail.Text.ToString().Trim() != "")
            {
                if (!System.Text.RegularExpressions.Regex.IsMatch(this.txtEmail.Text.ToString().Trim(), @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"))
                {
                    Msg.InfoBox("请输入正确的邮箱格式!");
                    return false;
                }
            }

分类:

技术点:

相关文章: