, , ..:
2_3 + 12_3 14_1 + + 16_3-400_2 + 2_3
regexp # 1:
Regex r1 = new Regex(@"\d+(\d_\d)");
MatchCollection mc = r1.Matches(sourcestring);
:
[0] [0] = 12_3
[0] [1] = 2_3
[1] [0] = 14_1
[1] [1] = 4_1
[2] [0] = 16_3
[2] [1] = 6_3
[3] [0] = 400_2
[3] [1] = 0_2
regexp # 2:
Regex r2 = new Regex(@"\d+\d_\d");
MatchCollection mc = r2.Matches(sourcestring);
:
[0] [0] = 12_3
[1] [0] = 14_1
[2] [0] = 16_3
[3] [0] = 400_2
, ?