using System.Text.RegularExpressions;
public static void Main()
string input = "Hello World!";
Regex regex = new Regex(pattern);
var matches = regex.Matches(input);
Console.WriteLine("No match found.");
Console.WriteLine($"{matches.Count} match found");
foreach (Match m in matches)