static void Main(string[] args)
{
string strs = "";
string str =
"错误1:“卓紹衡C97067”,同一员工不可多次申报<br/>" +
"错误2:“王际勇62279”,同一员工不可多次申报<br/>" +
"错误3:“郭皓61566”,同一员工不可多次申报<br/>" +
"错误4:“王际勇62279”,申报角色不能为空<br/>" +
"错误5:“卓紹衡C97067”,申报角色不能为空<br/>" +
"错误6:“周晓杰62585”,申报角色不能为空<br/>" +
"错误7:“郭皓61566”,申报角色不能为空<br/>" +
"错误8:“陈琪祥61949”,申报角色不能为空<br/>" +
"错误9:“王际勇62279”,分配比例不能为空<br/>" +
"错误10:“卓紹衡C97067”,分配比例不能为空<br/>" +
"错误11:“周晓杰62585”,分配比例不能为空<br/>" +
"错误12:“郭皓61566”,分配比例不能为空<br/>" +
"错误13:“陈琪祥61949”,分配比例不能为空<br/>" +
"错误14:奖金池设立原因为空<br/>";
string ss;
string[] strgroup = str.Split('>');
string[] strGreat = new string[strgroup.Length];
string[] text = new string[strgroup.Length];
for (int i = 0; i < strgroup.Length; i++)
{
if (strgroup.Length != i + 1)
{
strGreat[i] = strgroup[i] + ">";
Console.WriteLine(strGreat[i]);
}
}
for (int i = 0; i < strGreat.Length; i++)
{
if (strgroup[i].Contains('“') && strgroup[i].Contains('”'))
{
//求第一次出现“的位置
//求第一次出现”的位置
int first = strgroup[i].IndexOf('“');
int end = strgroup[i].IndexOf('”');
text[i] = strgroup[i].Substring(first + 1, end - 5);
//将第一个添加到新的字符串
strs = strGreat[i] != "" ? strGreat[i] : "";
for (int j = 1; j < strGreat.Length; j++)
{
if (strGreat[i].Contains(ss))
{
strs.Substring(strgr)
}
}
}
}
for (int i = 0; i < strGreat.Length; i++)
{
}
//创建了数组 strGreat
//string strtext = "12s";
//for (int i = 0; i < strGreat.Length; i++)
//{
// text = strGreat[i].Split('“');
//}
for (int i = 0; i < text.Length; i++)
{
Console.WriteLine(text[i]);
}
Console.ReadKey();
}