我有像
这样的信号您好{{Bla bla}}我的名字是{{other bla}}
我希望使用正则表达式
让{{ somthing }}
全部出现
我该怎么办? 感谢
答案 0 :(得分:0)
string input = "Hello {{Bla bla }} my name is {{other bla}}";
var matches = Regex.Matches(input, @"\{\{(.+?)\}\}").Cast<Match>()
.Select(m => m.Groups[1].Value)
.ToList();