Spilt in C# with word and character
// Split using single character
String nms1="aa,bb,cc,dd,ee";
string[] nm1 = nms1.Split(',');
// Split using word
using System.Text.RegularExpressions;
String nms2="aa<name>bb<name>cc<name>dd<name>ee";
string[] nm2 = Regex.Split(nms2, "<name>");
// Split using single character
String nms1="aa,bb,cc,dd,ee";
string[] nm1 = nms1.Split(',');
// Split using word
using System.Text.RegularExpressions;
String nms2="aa<name>bb<name>cc<name>dd<name>ee";
string[] nm2 = Regex.Split(nms2, "<name>");
0 comments:
Post a Comment