110,533
社区成员
发帖
与我相关
我的任务
分享
(?<!\([^\)]*?)[a-z]+
string source = "12ab(34cd)56e(fg78)h";
source = Regex.Replace(source, @"(\([^\)]*\))", "");
foreach (Match vMatch in Regex.Matches(source, "[a-z]"))
{
Console.WriteLine(vMatch.Value);
}
string source = "12ab(34cd)56e(fg78)h";
Text = Regex.Replace(source, @"(\([^\)]*\))|\d", "");