using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
string[] replaces = {"123","456","789"};
Regex regEx = new Regex("abc");
string result = regEx.Replace(input, delegate(Match match) {return replaces[index++];} );
Console.WriteLine(result);