using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication17
{
class Program
{
static void Main(string[] args)
{
string[] str =
{
"Help",
"Chapter 2: Reqiured Help",
"Helpme",
"no match found"
};
string check = "help";
foreach (string ss in str)
{
System.Console.Write("{0,24}", ss);
if (System.Text.RegularExpressions.Regex.IsMatch(ss, check, System.Text.RegularExpressions.RegexOptions.IgnoreCase))
{
System.Console.WriteLine(" (match for '{0}' found)", check);
}
else
{
System.Console.WriteLine();
}
}
// Keep the console window open in debug mode.
System.Console.WriteLine("Press any key to exit.");
System.Console.ReadKey();
}
}
}