Mine code split strings using "^", I want to split the strings using "^^^^",

string b = "mansi^^^^sharma";

But i m not getting it,Cz split takes just one char.
Mine code is as below-

protected void Button1_Click(object sender, EventArgs e)
    {
          string b = "mansi^sharma";
        string[] splt = b.Split(new char[] { '^' });
   }

string b = "mansi^^^^sharma";string b = "mansi^^^^sharma";
string[] splt = b.Split(new char[] { '^' ,'^','^','^'});

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.