using System.Text.RegularExpressions;
string input = "Hello, World!";
Regex regex = new Regex("Hello");
MatchCollection matches = regex.Matches(input);
Console.WriteLine("Pattern(s) found:");
foreach (Match match in matches)
Console.WriteLine($"\t {match.Value}");
Console.WriteLine("Pattern not found.");