string
-
I have a string bobby@yahoo.com (Bobby Gill) I want to parse it and want to get the substring "bobby@yahoo.com" before space. Could you please give me code. thanks
seema
-
I have a string bobby@yahoo.com (Bobby Gill) I want to parse it and want to get the substring "bobby@yahoo.com" before space. Could you please give me code. thanks
seema
-
I have a string bobby@yahoo.com (Bobby Gill) I want to parse it and want to get the substring "bobby@yahoo.com" before space. Could you please give me code. thanks
seema
string s="bobby@yahoo.com (Bobby Gill)" int indx=s.IndexOf(' '); string val=s.Substring(0,indx);
ORstring s="bobby@yahoo.com (Bobby Gill)" string[] ss=s.Split(' '); int count=0; string val; foreach(string s1 in ss) { if(count==0) { val=s1; } count=1; }
Best Regard Pathan---------------------------------------------------