Write a code using Regular expression

devquora
devquora

Posted On: Feb 22, 2018

 

static void Main (string[] args)
{
string[] languages = { “C#”, “Python”, “Java”)
foreach (string s in languages)
{
if (System.Text.RegularExpressions.Regex.IsMatch(s, “Python”))
{
Console.WriteLine(“Match found”);
}
}

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    C# Interview Questions

    What is C#?

    C# is a programming language which is object-oriented developed by Microsoft...

    C# Interview Questions

    Define a class and an object.

    A class is an example of properties and techniques that utilize and characterize a continuous substance...

    C# Interview Questions

    List the fundamental OOP concepts.

    The fundamentals of an OOP concept are:..