Split Function For Beginners?

Sabarimahesh
Posted by Sabarimahesh under C# category on | Points: 40 | Views : 1029
using System;
using System.Text.RegularExpressions;


class Program
{
static void Main()
{


string Input= "Dotnetfuda\w\xTeams";

string[] Split_lines= Regex.Split(value, "\w\x");

foreach (string lines in Split_lines)
{
Console.WriteLine(lines );
}
}

}
Output
Dotnetfuda
Teams

Comments or Responses

Login to post response