11 April 2017

Find Email Domain

My solution:
string findEmailDomain(string address) 
{
    return Regex.Match(address, "@[A-z0-9\\.-]+$").Value.Substring(1);
}

Previous Next