using uCalcSoftware; var uc = new uCalc(); var t = uc.NewTransformer(); t.Text = "
Text
"; // Pattern to find any tag and its content t.Pattern("<{tag}>{content}{tag}>"); t.Find(); var allMatches = t.Matches; Console.WriteLine($"Found {allMatches.Count()} matches:"); // Loop through each Match object and print its Text foreach(var match in allMatches) { Console.WriteLine($" - {match.Text}"); }