public static void Main()
string strItemCode = "sony-dvd-062019";
string[] strArray = strItemCode.Split('-');
string strManufacturer = strArray[0];
string strProduct = strArray[1];
string strMonth = strArray[2].Substring(0, 2);
string strYear = strArray[2].Substring(2, 4);
Console.WriteLine("strManufacturer:{0} strProduct:{1} strMonth:{2} strYear:{3}", strManufacturer, strProduct, strMonth, strYear);
Console.WriteLine("Please enter your email:");
strEmail = Console.ReadLine();
if (!strEmail.Contains("@"))
Console.WriteLine("Incorrect Format! Please enter the correct format.");
strUsername = strEmail.Substring(0, strEmail.IndexOf("@"));
strDomain = strEmail.Substring(strEmail.IndexOf("@") + 1);
Console.WriteLine("User Name:{0} Domain:{1}", strUsername, strDomain);