hi all
i have some string data like
String str= Samsung=1,Appele=2,Nokia=3,me=4,
and want it string str1=1,2,3,4;
i want to cut all data but remain value between = and ,
like Samsung=1, and replace with 1
This way
string str= "Samsung=1,Appele=2,Nokia=3,me=4"; string nos = ""; foreach(string s in str.Split(',')) { nos += s.Split('=')[1] + ","; }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.