Example 1 The following example calls the Regex.Matches(String, String) method to retrieve all pattern matches in an input string. It then iterates the Match objects in the returned MatchCollection object to display information about each match. using System; using System.Text.RegularExpressions; public class Example { public static void Main() { string input = "int[] values = { 1, 2, 3 };\n" + "f