Can't get correct split() result
I am trying to split a string into 3 parts (array) and return the last element(email address). Currently this code is returning the second and the third elements in VS.NET 2002. Can someone tell me why that is?
private string getEmailAddr(string x)
{
string emStr = "Foo Foo [email protected]";
string[] parts = emStr.Split(new char[] {' '}, 3);
emStr = parts[2].ToString();
return emStr;
}

mibuytRank #3,026 · 476 pointsPosted Apr 25, 2005, 4:08 PM EDT
sajid30731 pointsPosted Apr 27, 2005, 7:37 AM EDT
thewanz6 pointsPosted Apr 27, 2005, 11:25 AM EDT
sajid30731 pointsPosted Apr 28, 2005, 1:18 AM EDT
thewanz6 pointsPosted Apr 28, 2005, 6:00 AM EDT
sajid30731 pointsPosted Apr 29, 2005, 12:37 AM EDT