Advertisement
areyesram

Untitled

Jun 24th, 2020
1,611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace split
  5. {
  6.     internal class Program
  7.     {
  8.         private static void Main()
  9.         {
  10.             var text = "3333#jutt,111#jony,554#ahmed";
  11.             var list = text.Split(',')
  12.                 .Select(o => o.Split('#'))
  13.                 .ToArray();
  14.             foreach (var row in list)
  15.             {
  16.                 foreach (var col in row)
  17.                     Console.Write(col + '\t');
  18.                 Console.WriteLine();
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement