0

我有一个格式为 CODE:8000012016 502 Bad Gateway 的文本文件

502错误的网关

找不到主机或连接失败

CODE:8000012146 502 网关错误

502错误的网关

找不到主机或连接失败

CODE:8000023700 502 网关错误

502错误的网关

找不到主机或连接失败

. . . . . . . . CODE:8001129584 {"event_id":"0D004B66AA326A34","version":"1.6","error":{"system_unavailable":true,"no_tickets":true,"invalid":{"ticketing":true}}, “命令”:“event_authenticate”}

CODE:8001129586 {"event_id":"0D004B66AA326A34","version":"1.6","error":{"system_unavailable":true,"no_tickets":true,"invalid":{"ticketing":true}}, "命令":"event_authenticate"} 。. . . .

我必须将这两种格式分开并保存在新的不同文本文件中。

4

1 回答 1

0

好的,请提供更多详细信息...如我所见,您可以搜索 HTML 标记。

例如:

foreach(LineOfText line in text)
{
    foreach(Word in line)
    {
        if(Word is HtmlTag)
        {
            mark current line as type1;
            put current line in string1;
        }
        else
        {
            mark current line as type2;
            put current line in string2;
        }
    }
}

SaveString(string1);
SaveString(string2);
于 2013-11-13T12:25:37.550 回答