using System; public class Test { public static void Main() { string[,] table3x3 = new string[3, 3]; string myString = "11A23A4A5A87A5"; string[] splitA = myString.Split(new char[] { 'A' }); int index = 0; bool first = true; foreach (string part in splitA) { int row = index / 3; int col = index % 3; if (!first) { table3x3[row, col] = part[0].ToString(); } index += part.Length; first = false; } for (int row = 0; row < 3; row ++) { for (int col = 0; col < 3; col++) if (string.IsNullOrEmpty(table3x3[row,col])) Console.Write("[ ]"); else Console.Write("["+table3x3[row,col]+"]"); Console.WriteLine(); } } }