can i split
"a(1),b(2),c(3)" to "1,2,3"
in c# without using forloop?
can i split
"a(1),b(2),c(3)" to "1,2,3"
in c# without using forloop?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 13, 2012, 4:33 AM
satyaPosted Jun 13, 2012, 7:38 AM
satyaPosted Jun 12, 2012, 11:31 PM
"res 765(1), b'ees 54(2), can:e 43(3)"
to split into "1,2,3"
brunda kPosted Jun 12, 2012, 12:37 PM
StringBuilder str = new StringBuilder();
str.Append(text.Substring(2, 1) + text.Substring(4, 1) + text.Substring(7, 1) + text.Substring(9, 1) + text.Substring(12, 1));
VulpesPosted Jun 12, 2012, 9:10 AM
using System.Text.RegularExpressions;
// ...
string text = "abc(10),def_123(11),GHI456(12)";
VulpesPosted Jun 12, 2012, 8:38 AM