To extract domain from email address Select a blank cell to place this formula =RIGHT(A2,LEN(A2)-FIND("@",A2)), press Enter key, and drag fill handle down to the cells which need this formula.
Go to the website, just enter the domain name of your desired company like ampercent.com to find email addresses available in that domain. It will look out for sources mentioning the email address with tailing @ampercent.com string and give your results along with number of sources containing that address.
Here's how to set up Gmail with your domain name for a personalized and professional looking email address: Go to Google Apps Gmail page, click the “Get Started Button.” Enter the name of your business and choose the number of employees or users. Pick the company's location.
A domain name (often simply called a domain) is an easy-to-remember name that's associated with a physical IP address on the Internet. It's the unique name that appears after the @ sign in email addresses, and after www. in web addresses.
Using MailAddress you can fetch the Host
from a property instead
MailAddress address = new MailAddress("[email protected]");
string host = address.Host; // host contains yahoo.com
If Default's answer is not what you're attempting you could always Split
the email string after the '@'
string s = "[email protected]";
string[] words = s.Split('@');
words[0]
would be xyz
if you needed it in futurewords[1]
would be yahoo.com
But Default's answer is certainly an easier way of approaching this.
Or for string based solutions:
string address = "[email protected]";
string host;
// using Split
host = address.Split('@')[1];
// using Split with maximum number of substrings (more explicit)
host = address.Split(new char[] { '@' }, 2)[1];
// using Substring/IndexOf
host = address.Substring(address.IndexOf('@') + 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With