using System.Text.RegularExpressions;
public static void Main()
var coordinatePattern = @"\((\d+,?\.?\d+)\s(MW|Kwh)\)";
Regex rgx = new Regex(coordinatePattern, RegexOptions.IgnoreCase);
var remarks = "San Luis West Solar Project: Solar Farm (31.25 MW) | Battery Storage (125 MW) Granite Knolls Park Solar Project: Solar Panels (1.3 MW) | Battery Storage System (4,000 Kwh) For Car Park - Installation";
MatchCollection m = rgx.Matches(remarks);
Console.WriteLine("Hello World");
Console.WriteLine(m[3].Groups[2]);