string str = "GetLan.translate('TypeA', 'Str2','无效');";
MatchCollection mtc = Regex.Matches(str, @"translate\('([\w\w]+)'([\w\W].+?)'([\w\W].+?)'([\w\W].+?)([\w\W].+?)'\)");
foreach (Match item in mtc)
{
Console.WriteLine(item.Groups[1].ToString() + " " + item.Groups[3].ToString() + " " + item.Groups[5].ToString());
}
(?i)(?<=GetLan\.translate\(\')([^']*)',\s*'([^']*)','([^']*)'\);
‘\w+’就行了。