110,538
社区成员
发帖
与我相关
我的任务
分享
string strline = "A staitc (test) final A静态文件";
string source_en = "";
string target_zh = "";
var pattern = @"(\b[\x20-\x7e]+\b)\s(.*)";
MatchCollection mc = Regex.Matches(strline, pattern);
foreach (Match match in mc)
{
source_en = match.Groups[1].Value;
target_zh = match.Groups[2].Value;
Console.WriteLine(source_en);
Console.WriteLine(target_zh);
}