我从一个网站得到了这段代码。它将unicode转换为印地文字体。它使用匹配,但我不遵循如何在其他地方定义它。它在'>'附近产生错误。Match Evaluator not working
string input = "0928;0940;0932;092E;";
Regex rx = new Regex(@"([0-9A-Fa-f]{4});");
string output = rx.Replace(input, match => ((char)Int32.Parse(match.Groups[1].Value, NumberStyles.HexNumber)).ToString());
textBox1.Text = output;
更新
错误: '匹配' 不存在当前上下文存在。
,什么是错误? – Strillo
错误是:匹配在当前上下文中不存在。 – RKh