string[] A;
string B = " abcd@@efg@@sdff ;";
string C=abcde@efgasdfl@sdlfjs ;
If you want to split C is easy, just do this:
A = C.Split( '@' );
result:
A[0] = "abcde";
A[1] = "efgasdfl";
A[2] = "sdlfjs";
What if you want to split B? The easiest way is to replace @@ with a single string first.
A = B.Replace("@@","$").Split('$');
A[0] = "abcd";
A[1] = "efg";
A[2] = "sdff";