Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# cvalidate email


bool IsValidEmail(string email)
{
    if (email.Trim().EndsWith(".")) {
        return false; // suggested by @TK-421
    }
    try {
        var addr = new System.Net.Mail.MailAddress(email);
        return addr.Address == email;
    }
    catch {
        return false;
    }
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: como crear un numero aleatorio en c# 
Csharp :: textmeshpro text 
Csharp :: make winforms full-screen c# 
Csharp :: void on trigger enter 2d 
Csharp :: how to run an external program with c# 
Csharp :: import C++ into C# 
Csharp :: how to call something once in update 
Csharp :: how to get the current gameobject animator in unity 
Csharp :: c# or 
Csharp :: wpf bind to self 
Csharp :: how to get delta time in monogame 
Csharp :: unity player look at mouse 
Csharp :: Animator.GotoState: State could not be found 
Csharp :: c# boilerplate 
Csharp :: c# how to check string is number 
Csharp :: clear screen putty 
Csharp :: C# previous method 
Csharp :: unity change play mode color 
Csharp :: delete null elements array c# 
Csharp :: system command in c# 
Csharp :: c# remove accents 
Csharp :: c# post get request 
Csharp :: add row to datagridview c# 
Csharp :: c# run as administrator 
Csharp :: unity mouse disapear 
Csharp :: linq select count group by c# 
Csharp :: c# create datatable 
Csharp :: unity particle system playing at the wrong location 
Csharp :: load prefab in script unity 
Csharp :: listview disable resize columns 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =