For smart Primates & ROBOTS (oh and ALIENS ).

Blogroll

Wednesday, September 03, 2014

Spilt in C# with word and character

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>");

Share:

0 comments:

Post a Comment

How to make center align child div

 How to make center align child div?   Suppose you have 2 Div tag. And want the make inner tag center <div id="d1">      ...

Ads Inside Post

Powered by Blogger.

Arsip

Blog Archive