In my application i am getting email ids as shown below without getting seperated with comma i need to seperate the with comma after .com using c# code.How can i do this i am getting the email id's as shown below nitya@gmail.combhavya@gmail.com i need to seperate them after .com using c# code.How can i do this
i need to seperate them after .com using c# code.How can i do this
.com
.co
billy@test.comike@test.biz
string stremails = "nitya@gmail.combhavya@gmail.com";stremails = stremails.Replace(".com", ".com,");var emails = stremails.Split(new string[]{","}, StringSplitOptions.RemoveEmptyEntries);foreach(string e in emails){ Console.WriteLine(e);}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)