using System.Text.RegularExpressions;
public static void Main()
string decimalGroup = @"(\d.)*\s*";
string wordsGroup = @"([A-Za-z ])*?";
var regexString = $@"A {wordsGroup}charge of {decimalGroup}at {decimalGroup}for {decimalGroup}already exists.\s+Replace with a {wordsGroup}charge of {decimalGroup}per {wordsGroup}at recomputed quantity\?";
Regex regex = new Regex(regexString);
@"A Minimum Charge charge of 1. at 879.00 for 495.00 already exists.
Replace with a Distance charge of 6.99 per at recomputed quantity?",
@"A Minimum Charge charge of 1. at 742.00 for 156.00 already exists.
Replace with a Distance charge of 1.38 per at recomputed quantity?",
@"A Haul Flat Rate charge of 1. at 0.01 for 0.01 already exists.
Replace with a Haul Flat Rate charge of 487.00 per at recomputed quantity?",
@"A Linehaul Flat Rate charge of 1. at 0.01 for 0.01 already exists.
Replace with a Linehaul Flat Rate charge of 1100.00 per at recomputed quantity?"
Console.WriteLine(regexString);
foreach(string input in inputs)
Match match = regex.Match(input);
Console.WriteLine(input);
Console.WriteLine("\tMatch: "+match.Success);