Hey pujandoshi,
Please refer below sample.
Code
C#
private void btnValidate_Click(object sender, EventArgs e)
{
System.Text.RegularExpressions.Regex regx = new System.Text.RegularExpressions.Regex(@"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");
if (regx.IsMatch(txtEmail.Text.Trim()))
{
MessageBox.Show("Valid Email.");
}
else
{
MessageBox.Show("Invalid Email.");
}
}
VB.Net
Private Sub btnValidate_Click(sender As System.Object, e As System.EventArgs) Handles btnValidate.Click
Dim regx As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex("^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$")
If regx.IsMatch(txtEmail.Text.Trim()) Then
MessageBox.Show("Valid Email.")
Else
MessageBox.Show("Invalid Email.")
End If
End Sub
Screenshots

