<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" id="jsHtml" lang="ru" class="page-scroll jsHtml draganddrop jsHtml"><head><title>јрхив Mail.Ru јгента</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="/css/styles.css"> <script type="text/javascript"> window.AgentArchive = { DEBUG: false, historyEnabled: true, hash: "3eb2a213676c5f80a91044d45be783c0", contacts: {"success":true,"list":[{"name":"\u0422\u0435\u0441\u0442 \u0422\u0435\u0441\u0442\u043e\u0432","email":"testtestov101@mail.ru","text":"\u043e\u0432\u0430\u0442\u043e\u0432conv \u2014 \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443","inbox":false,"date":"28 \u0410\u043f\u0440 15:19","mid":"211783149443618077"},{"name":"tttttttttt ytyt","email":"night_post@mail.ru","text":"\u041f\u043e\u043b\u0443\u0447\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c \u0441 EF. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u044b \u0438 \u0448\u043a\u043e\u043b\u044b \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443","inbox":true,"date":"2012, 10 \u041e\u043a\u0442 09:25","mid":"211733104484681302"}],"is_last":true,"is_messages":false,"message_ts":0} }; </script> <script type="text/javascript" src="/js/script.js?4"></script> <style> html, body { height: 100%; } #ScrollBody { height: 100%; overflow-y: scroll; } </style></head><body> <div class="page-wrap" id="wrap"> <div id="agent-archive-wrap"></div> </div></body></html>
{"success":true,"list":[{"name":"\u0422\u0435\u0441\u0442 \u0422\u0435\u0441\u0442\u043e\u0432","email":"testtestov101@mail.ru","text":"\u043e\u0432\u0430\u0442\u043e\u0432conv \u2014 \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443","inbox":false,"date":"28 \u0410\u043f\u0440 15:19","mid":"211783149443618077"},{"name":"tttttttttt ytyt","email":"night_post@mail.ru","text":"\u041f\u043e\u043b\u0443\u0447\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c \u0441 EF. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u044b \u0438 \u0448\u043a\u043e\u043b\u044b \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443","inbox":true,"date":"2012, 10 \u041e\u043a\u0442 09:25","mid":"211733104484681302"}],"is_last":true,"is_messages":false,"message_ts":0} };
QRegExp regexContactAgent("contacts: (.)+</script>");
contacts: {"success":true,"list":[{"name":"\u0422\u0435\u0441\u0442 \u0422\u0435\u0441\u0442\u043e\u0432","email":"testtestov101@mail.ru","text":"\u043e\u0432\u0430\u0442\u043e\u0432conv \u2014 \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443","inbox":false,"date":"28 \u0410\u043f\u0440 15:19","mid":"211783149443618077"},{"name":"tttttttttt ytyt","email":"night_post@mail.ru","text":"\u041f\u043e\u043b\u0443\u0447\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c \u0441 EF. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u044b \u0438 \u0448\u043a\u043e\u043b\u044b \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443","inbox":true,"date":"2012, 10 \u041e\u043a\u0442 09:25","mid":"211733104484681302"}],"is_last":true,"is_messages":false,"message_ts":0} }; </script> <script type="text/javascript" src="/js/script.js?4"></script>
QRegExp regexContactAgent("contacts: (.)+};);
C++ (Qt)setMinimal(true)
(?<=contacts:) .*?(?=</script>)
QString regExps(QString inString, QString inRegExp) { CRegexpT <char> regexp(inRegExp.toAscii(), IGNORECASE | SINGLELINE); MatchResult result = regexp.Match(inString.toAscii()); while( result.IsMatched() ) { return inString.mid(result.GetStart(), result.GetEnd() - result.GetStart()); } return ""; }
QRegExp reg("contacts:\\s?(\\{.+\\})\\s*\\}");
contacts: {"success":true,"list":[{"name":"\u0422\u0435\u0441\u0442 \u0422\u0435\u0441\u0442\u043e\u0432","email":"testtestov101@mail.ru","text":"\u043e\u0432\u0430\u0442\u043e\u0432conv \u2014 \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443","inbox":false,"date":"28 \u0410\u043f\u0440 15:19","mid":"211783149443618077"},{"name":"tttttttttt ytyt","email":"night_post@mail.ru","text":"\u041f\u043e\u043b\u0443\u0447\u0438 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043e\u043c \u0441 EF. \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u044b \u0438 \u0448\u043a\u043e\u043b\u044b \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443","inbox":true,"date":"2012, 10 \u041e\u043a\u0442 09:25","mid":"211733104484681302"}],"is_last":true,"is_messages":false,"message_ts":0} }