using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq.Expressions;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Text.RegularExpressions;
public static void Main()
Regex reg = new Regex("{(\\w+)}");
var text = "Hello this is a {Testvar}... and we have more {Tagvar} in this string {Endvar}.";
string[] tagResult = reg.Matches(text)
.Select(match => match.Groups[1].Value).ToArray();
foreach (var item in tagResult)