以下是部分代码:
int i = 1,j=0;
for (int r = 0; r < q; r++)
{
string[] data5 = new string[0];
string[][] ff = new string[data3.Length][];
ListViewItem a = new ListViewItem();
if (g3_1.IsMatch(data3[r]))
{
string data6 = data3[r].Replace("DEP-", "cDEP-");
data5 = data6.Split(new char[] { 'c' });
Match group3_1 = Regex.Match(data5[1], "[A-Z]{3}");
Match group7_1 = Regex.Match(data5[1], "([A-Z]{3}\\d{1,4}/[A][0-7]{4})|([A-Z]{3}\\d{1,3}[Q-Z])|([A-Z]{3}\\d{1,4})");
Match group9_1 = Regex.Match(data5[1], "([0-9]{0,2}\\w{2,4})/[HML]");
Match group13_1 = Regex.Match(data5[1], "[A-Z]{4}[0-9]{4}");
Match group16a_1 = Regex.Match(data5[1], "(-[A-Z]{4}-)");
Match group16_1 = Regex.Match(group16a_1.Value, "([A-Z]{4})");
ff[j][0] = i.ToString();
ff[j][1] = group3_1.Value;
ff[j][2] = group7_1.Value;
ff[j][3] = group9_1.Value;
ff[j][4] = group13_1.Value;
ff[j][6] = group16_1.Value;
}
}