Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace split
- {
- internal class Program
- {
- private static void Main()
- {
- var text = "3333#jutt,111#jony,554#ahmed";
- var list = text.Split(',')
- .Select(o => o.Split('#'))
- .ToArray();
- foreach (var row in list)
- {
- foreach (var col in row)
- Console.Write(col + '\t');
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement