CSharp · Console
using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
{
// Example dates
var dates = new []{ "TestA (3/12/10)", "TestB (10/12/10)", "TestD (4/5/15)", "TestD (4/6/15)"};
// Strip out each date and format them
foreach(var date in dates)
{
Console.WriteLine(Regex.Replace(date,@"\(\d{1,2}\/\d{1,2}\/\d{1,2}\)",""));
}
}
}