{"id":501339,"date":"2026-11-02T13:47:48","date_gmt":"2026-11-02T10:47:48","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=501339"},"modified":"2026-11-02T13:47:48","modified_gmt":"2026-11-02T10:47:48","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=501339","title":{"rendered":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0438\u0437\u00a0\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438: \u0411\u0418\u041a, \u043a\u043e\u0440\u0441\u0447\u0451\u0442 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438\u00a0\u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u00a0\u0420\u043e\u0441\u0441\u0438\u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0432\u0441\u0435: \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0438, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0438, \u043f\u043e\u0434\u0440\u044f\u0434\u0447\u0438\u043a\u0438. \u0412\u00a0\u043d\u0451\u043c \u0418\u041d\u041d, \u041a\u041f\u041f, \u0430\u0434\u0440\u0435\u0441 \u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b. \u0424\u043e\u0440\u043c\u0430\u0442\u0430 \u0443\u00a0\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043d\u0435\u0442: \u043a\u0442\u043e\u2011\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u00a0Word, \u043a\u0442\u043e\u2011\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u00a0PDF, \u043a\u0442\u043e\u2011\u0442\u043e \u043b\u0438\u0441\u0442 Excel. \u041f\u043e\u0434\u043f\u0438\u0441\u0438 \u043f\u0438\u0448\u0443\u0442 \u043a\u0430\u043a\u00a0\u0443\u0433\u043e\u0434\u043d\u043e: \u00ab\u0420\/\u0441\u00bb, \u00ab\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u2116\u00bb, \u00ab\u0440.\u0441\u0447.\u00bb, \u00ab\u0421\u0447\u0451\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f\u00bb.<\/p>\n<p>\u042f \u0434\u0435\u043b\u0430\u044e \u0432\u0435\u0431\u2011\u0441\u0435\u0440\u0432\u0438\u0441, \u0433\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443, \u0430\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0441\u0430\u043c\u0430. \u041d\u0438\u0436\u0435\u00a0\u2014 \u0447\u0442\u043e\u00a0\u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0430\u00a0\u0447\u0442\u043e\u00a0\u043d\u0435\u0442, \u0441\u00a0\u043a\u043e\u0434\u043e\u043c.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u0438\u00bb<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439: \u043d\u0430\u0439\u0442\u0438 \u0441\u043b\u043e\u0432\u043e \u00ab\u0411\u0418\u041a\u00bb \u0438 \u0432\u0437\u044f\u0442\u044c 9\u00a0\u0446\u0438\u0444\u0440 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0433\u043e. \u041e\u043d\u0430 \u043b\u043e\u043c\u0430\u043b\u0430\u0441\u044c \u0432\u00a0\u0442\u0440\u0451\u0445 \u043c\u0435\u0441\u0442\u0430\u0445.<\/p>\n<ol>\n<li>\n<p><strong>\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445.<\/strong> \u041f\u0440\u0438\u00a0\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u0437\u00a0\u0442\u0430\u0431\u043b\u0438\u0446 PDF \u0438 DOCX \u044f\u0447\u0435\u0439\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u00ab\u0411\u0418\u041a\u00bb, \u043f\u043e\u0442\u043e\u043c \u00ab044525225\u00bb.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \u043c\u043d\u043e\u0433\u043e.<\/strong> \u00ab\u041a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u0447\u0435\u0442 \u2116\u00bb, \u00ab\u041a\/\u0441\u00bb, \u00ab\u043a\u043e\u0440\u0440. \u0441\u0447\u0451\u0442\u00bb, \u00ab\u041a\u043e\u0440\/\u0441\u0447\u00bb\u00a0\u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430 \u00ab\u0431\u0430\u043d\u043a\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f.<\/strong> \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u00ab\u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e \u0441\u043b\u043e\u0432\u043e\u043c \u0431\u0430\u043d\u043a\u00a0\u2014 \u044d\u0442\u043e \u0431\u0430\u043d\u043a\u00bb \u043d\u0430 \u00ab\u0418\u041d\u0412\u0415\u0421\u0422\u0422\u041e\u0420\u0413\u0411\u0410\u041d\u041a \u0410\u041e\u00bb \u0431\u0440\u0430\u043b\u043e \u0445\u0432\u043e\u0441\u0442 \u043f\u043e\u0441\u043b\u0435 \u00ab\u0431\u0430\u043d\u043a\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e \u00ab\u0410\u041e, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430\u00bb.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u044b\u0445\u043e\u0434\u00a0\u2014 \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u00a0\u0441\u0430\u043c\u0438 \u0446\u0438\u0444\u0440\u044b: \u0443\u00a0\u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442<\/p>\n<h2>\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043e\u00a0\u0446\u0438\u0444\u0440\u0430\u043c<\/h2>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"282\" width=\"282\">\n<p align=\"left\"><strong>\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"84\" width=\"84\">\n<p align=\"left\"><strong>\u0414\u043b\u0438\u043d\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041f\u0440\u0438\u0437\u043d\u0430\u043a<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"282\" width=\"282\">\n<p align=\"left\">\u0411\u0418\u041a<\/p>\n<\/td>\n<td data-colwidth=\"84\" width=\"84\">\n<p align=\"left\">9<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 04<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"282\" width=\"282\">\n<p>\u041a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u0447\u0451\u0442<\/p>\n<\/td>\n<td data-colwidth=\"84\" width=\"84\">\n<p align=\"left\">20<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 30\u202f101<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"282\" width=\"282\">\n<p align=\"left\">\u0420\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u0439 \u0441\u0447\u0451\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/td>\n<td data-colwidth=\"84\" width=\"84\">\n<p align=\"left\">20<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 405\u2013408<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<pre><code class=\"python\">import reBIK  = re.compile(r\"(?&lt;!\\d)(04\\d{7})(?!\\d)\")CORR = re.compile(r\"(?&lt;!\\d)(30101\\d{15})(?!\\d)\")ACC  = re.compile(r\"(?&lt;!\\d)(40[5-8]\\d{17})(?!\\d)\")def uniq(xs):    return list(dict.fromkeys(xs))  # \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f, \u0431\u0435\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432def find_numbers(text):    return (uniq(BIK.findall(text)),            uniq(CORR.findall(text)),            uniq(ACC.findall(text)))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>(?&lt;!\\d) \u0438 (?!\\d) \u0432\u0430\u0436\u043d\u044b. \u0411\u0435\u0437\u00a0\u043d\u0438\u0445 \u0438\u0437 20-\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u00ab\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u00bb \u0438\u0437 11\u00a0\u0446\u0438\u0444\u0440. \u0423\u00a0\u043d\u0430\u0441 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c: \u0432\u00a0\u043f\u043e\u043b\u0435 \u00ab\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u00bb \u043f\u043e\u043f\u0430\u043b\u043e 70\u202f281\u202f067\u202f000\u00a0\u2014 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430 \u0441\u0447\u0451\u0442\u0430 40702810670000000181.<\/p>\n<h2>\u0414\u0432\u0430 \u0431\u0430\u043d\u043a\u0430 \u0432\u00a0\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435<\/h2>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0443\u00a0\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0434\u0432\u0430 \u0431\u0430\u043d\u043a\u0430, \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/b2\/67\/8b\/b2678baa37c140236cdcac325b23f9b6.png\" alt=\"\" title=\"\" width=\"1122\" height=\"314\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/b2\/67\/8b\/b2678baa37c140236cdcac325b23f9b6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/b2\/67\/8b\/b2678baa37c140236cdcac325b23f9b6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a\u00a0\u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0440\u0441\u0447\u0451\u0442 \u043a\u00a0\u043a\u0430\u043a\u043e\u043c\u0443 \u0411\u0418\u041a? <\/p>\n<p>\u0423\u00a0\u043a\u043e\u0440\u0441\u0447\u0451\u0442\u0430 \u0431\u0430\u043d\u043a\u0430 <strong>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0442\u0440\u0438 \u0446\u0438\u0444\u0440\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u00a0\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u0442\u0440\u0435\u043c\u044f \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u0411\u0418\u041a<\/strong>: \u2026<strong>411<\/strong> \u2194 \u2026<strong>411<\/strong>, \u2026<strong>593<\/strong> \u2194 \u2026<strong>593<\/strong>. \u042d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u00a0\u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u00a0\u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043e\u0431\u0430 \u043d\u043e\u043c\u0435\u0440\u0430, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u044b \u043f\u0440\u0438\u00a0\u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<pre><code class=\"python\">def pair_banks(biks, cors, accs):    banks = []    for i, b in enumerate(biks):        corr = next((c for c in cors if c[-3:] == b[-3:]),                    cors[i] if i &lt; len(cors) else \"\")        banks.append({\"bik\": b, \"corr\": corr,                      \"account\": accs[i] if i &lt; len(accs) else \"\"})    return banks<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0421\u00a0\u0440\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u043c \u0441\u0447\u0451\u0442\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430 \u043d\u0435\u0442. \u0415\u0433\u043e \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u043e\u0439.<\/p>\n<h2>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430: \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0430<\/h2>\n<p>\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0451\u0442\u0430 \u0432\u00a0\u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u0431\u0430\u043d\u043a\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044f\u0434 (\u0434\u0435\u0432\u044f\u0442\u0430\u044f \u0446\u0438\u0444\u0440\u0430), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u00a0\u0411\u0418\u041a. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0411\u0430\u043d\u043a\u043e\u043c \u0420\u043e\u0441\u0441\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u0411\u0435\u0440\u0451\u043c 23\u00a0\u0446\u0438\u0444\u0440\u044b: \u00ab\u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0443\u00bb \u0438\u0437\u00a0\u0411\u0418\u041a \u0438 20\u00a0\u0446\u0438\u0444\u0440 \u0441\u0447\u0451\u0442\u0430.<\/p>\n<ul>\n<li>\n<p>\u0434\u043b\u044f <strong>\u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0451\u0442\u0430<\/strong> \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430\u00a0\u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3\u00a0\u0446\u0438\u0444\u0440\u044b \u0411\u0418\u041a;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043b\u044f <strong>\u043a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e<\/strong>\u00a0\u2014 \u00ab0\u00bb + 5-\u044f \u0438 6-\u044f \u0446\u0438\u0444\u0440\u044b \u0411\u0418\u041a.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0446\u0438\u0444\u0440\u044b \u043d\u0430\u00a0\u0432\u0435\u0441\u0430 7, 1, 3, 7, 1, 3, \u2026.<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u0440\u0451\u043c \u043c\u043b\u0430\u0434\u0448\u0438\u0439 \u0440\u0430\u0437\u0440\u044f\u0434 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 10, \u0441\u0447\u0451\u0442 \u0432\u0435\u0440\u043d\u044b\u0439.<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"python\">WEIGHTS = [7, 1, 3] * 8def _check(prefix, account):    digits = prefix + account    if len(digits) != 23 or not digits.isdigit():        return False    s = sum((int(d) * w) % 10 for d, w in zip(digits, WEIGHTS))    return s % 10 == 0def account_ok(bik, account):    return _check(bik[-3:], account)def corr_ok(bik, corr):    return _check(\"0\" + bik[4:6], corr)\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435:&gt;&gt;&gt; corr_ok(\"044525593\", \"30101810200000000593\")True&gt;&gt;&gt; account_ok(\"044525593\", \"40702810602490003955\")True&gt;&gt;&gt; account_ok(\"044525411\", \"40702810602490003955\")  # \u0441\u0447\u0451\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u0430False<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0438\u043c\u00a0\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0430 \u043a\u00a0\u0441\u0432\u043e\u0438\u043c \u0431\u0430\u043d\u043a\u0430\u043c, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e: \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u044b \u00ab\u0411\u0418\u041a \u00d7 \u0441\u0447\u0451\u0442\u00bb \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0443, \u0433\u0434\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<pre><code class=\"python\">def match_accounts(banks, accs):    left = list(accs)    for b in banks:        ok = next((a for a in left if account_ok(b[\"bik\"], a)), None)        if ok:            b[\"account\"] = ok            left.remove(ok)    return banks<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u044d\u0442\u043e \u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442: \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0441\u044f \u043d\u0430\u00a0\u043e\u0434\u043d\u0443 \u0446\u0438\u0444\u0440\u0443 \u043f\u0440\u0438\u00a0\u0440\u0443\u0447\u043d\u043e\u043c \u0432\u0432\u043e\u0434\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442 \u043f\u043e\u043b\u0435 \u0441\u0440\u0430\u0437\u0443, \u0430\u00a0\u043d\u0435\u00a0\u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0438 \u0438\u0437\u00a0\u0431\u0430\u043d\u043a\u0430.<\/p>\n<h2>\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445<\/h2>\n<p>\u0414\u043b\u044f\u00a0\u043f\u043e\u043b\u0435\u0439 \u0431\u0435\u0437\u00a0\u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 (\u0418\u041d\u041d \u0440\u044f\u0434\u043e\u043c \u0441\u00a0\u041a\u041f\u041f, \u041e\u0413\u0420\u041d) \u0438\u0449\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u043e\u0439\u00a0\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0435, \u0430\u00a0\u0435\u0441\u043b\u0438 \u0442\u0430\u043c \u043f\u0443\u0441\u0442\u043e\u00a0\u2014 \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:<\/p>\n<pre><code class=\"python\">def after_label(lines, label_rx, value_rx, skip_rx=None):    for i, line in enumerate(lines):        if not re.search(label_rx, line, re.I):            continue        if skip_rx and re.search(skip_rx, line, re.I):            continue        for s in (line, lines[i + 1] if i + 1 &lt; len(lines) else \"\"):            m = re.search(value_rx, s)            if m:                return m.group(1)    return \"\"inn  = after_label(lines, r\"\\b\u0418\u041d\u041d\\b\",  r\"(?&lt;!\\d)(\\d{12}|\\d{10})(?!\\d)\")kpp  = after_label(lines, r\"\\b\u041a\u041f\u041f\\b\",  r\"(?&lt;!\\d)(\\d{9})(?!\\d)\")ogrn = after_label(lines, r\"\\b\u041e\u0413\u0420\u041d\",   r\"(?&lt;!\\d)(\\d{15}|\\d{13})(?!\\d)\")<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>skip_rx \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f\u00a0\u043f\u043e\u0447\u0442\u044b: \u00ab\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430\u00bb \u043d\u0443\u0436\u043d\u0430, \u0430 \u00ab\u0411\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u044f, buh1_kp@maill.ru\u00bb\u00a0\u2014 \u043d\u0435\u0442. \u0411\u0435\u0437\u00a0\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0430 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438.<\/p>\n<h2>\u0421\u043a\u043b\u0435\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432<\/h2>\n<p>\u0418\u0437\u00a0\u044f\u0447\u0435\u0435\u043a DOCX \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0431\u0430\u043d\u043a\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0439\u0442\u0438 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0438\u043b\u0438\u00a0\u043f\u0440\u043e\u0431\u0435\u043b:<\/p>\n<p>\u0424\u0418\u041b\u0418\u0410\u041b \u00ab\u0426\u0415\u041d\u0422\u0420\u0410\u041b\u042c\u041d\u042b\u0419\u00bb \u0411\u0410\u041d\u041a\u0410 \u0412\u0422\u0411 (\u041f\u0410\u041e): \u0410\u041e \u00ab\u0410\u041b\u042c\u0424\u0410\u2011\u0411\u0410\u041d\u041a\u00bb<\/p>\n<p>\u0414\u0435\u043b\u0438\u043c \u043f\u043e\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f\u043c \u0438 \u043f\u043e\u00a0\u043d\u0430\u0447\u0430\u043b\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u00a0\u2014 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u043a\u043e\u0431\u043a\u0438 \u0438\u043b\u0438\u00a0\u043a\u0430\u0432\u044b\u0447\u043a\u0438:<\/p>\n<pre><code class=\"python\">SPLIT = re.compile(r'\\s*[:|;]\\s*|(?&lt;=[)\u00bb\"])\\s+(?=(?:\u0424\u0418\u041b\u0418\u0410\u041b|\u041f\u0410\u041e|\u0410\u041e|\u041e\u041e\u041e|\u0410\u041a\u0411|\u041a\u0411)\\b)')def bank_names(text):    lines = [l for l in text.splitlines()             if re.search(r\"\u0431\u0430\u043d\u043a\", l, re.I)             and not re.search(r\"\\b(\u0431\u0438\u043a|\u0441\u0447[\u0435\u0451]\u0442|\u0440\/\u0441|\u043a\/\u0441)\\b|\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\", l, re.I)]    joined = \" \".join(re.sub(r\"(?i)^(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435\\s+\u0431\u0430\u043d\u043a\u0430|\u0431\u0430\u043d\u043a)\\s*[:\\-]?\\s*\", \"\", l) for l in lines)    return [p.strip(\" ,\") for p in SPLIT.split(joined) if p and len(p.strip(\" ,\")) &gt; 2]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u00a0\u043f\u0430\u0440\u0430\u043c \u0411\u0418\u041a\/\u043a\u043e\u0440\u0441\u0447\u0451\u0442 \u043f\u043e\u00a0\u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0415\u0441\u043b\u0438 \u0431\u0430\u043d\u043a\u043e\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u043c\u044b \u043d\u0435\u00a0\u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u043c, \u0430\u00a0\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u044b\u0431\u043e\u0440: \u00ab\u0412 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 2\u00a0\u0431\u0430\u043d\u043a\u0430\u00a0\u2014 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c?\u00bb.<\/p>\n<h2>\u0427\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c<\/h2>\n<p>\u041d\u0430\u00a0\u0442\u0440\u0451\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 \u0441\u00a0\u0440\u0430\u0437\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u043e\u0439 (\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u00a0PDF, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u00a0DOCX, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u00a0PDF) \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u0430\u0432\u043e\u043a \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u043e\u043b\u044f. \u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:<\/p>\n<ul>\n<li>\n<p><strong>\u041e\u043f\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u00a0\u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430\u00a0\u043d\u0435\u00a0\u043d\u0430\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u0438.<\/strong> \u0423\u00a0\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0436\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b.<\/strong> \u042d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u043e\u043f\u0435\u0447\u0430\u0442\u043e\u043a \u0438 \u043e\u0442\u00a0\u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u0447\u0435\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435\u00a0\u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0439\u0442\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e.<\/strong> \u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u0435\u0448\u0435\u0432\u043b\u0435, \u0447\u0435\u043c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043d\u0430\u00a0\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445.<\/strong> \u041a\u0430\u0436\u0434\u0430\u044f \u043d\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430 \u043d\u043e\u0432\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443, \u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0432\u00a0\u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u0445, \u0430\u00a0\u043d\u0435\u00a0\u0432\u00a0\u043a\u043e\u0434\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0443\u00a0\u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u00ab\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u00a0\u0440\u0430\u0437\u0431\u0435\u0440\u0451\u0442\u0441\u044f\u00bb,\u00a0\u2014 \u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e\u00a0\u0435\u0449\u0451 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1102682\/\">https:\/\/habr.com\/ru\/articles\/1102682\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438\u00a0\u2014 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u00a0\u0420\u043e\u0441\u0441\u0438\u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443 \u0432\u0441\u0435: \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u0438, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0438, \u043f\u043e\u0434\u0440\u044f\u0434\u0447\u0438\u043a\u0438. \u0412\u00a0\u043d\u0451\u043c \u0418\u041d\u041d, \u041a\u041f\u041f, \u0430\u0434\u0440\u0435\u0441 \u0438 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b. \u0424\u043e\u0440\u043c\u0430\u0442\u0430 \u0443\u00a0\u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u043d\u0435\u0442: \u043a\u0442\u043e\u2011\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u00a0Word, \u043a\u0442\u043e\u2011\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u00a0PDF, \u043a\u0442\u043e\u2011\u0442\u043e \u043b\u0438\u0441\u0442 Excel. \u041f\u043e\u0434\u043f\u0438\u0441\u0438 \u043f\u0438\u0448\u0443\u0442 \u043a\u0430\u043a\u00a0\u0443\u0433\u043e\u0434\u043d\u043e: \u00ab\u0420\/\u0441\u00bb, \u00ab\u0420\u0430\u0441\u0447\u0435\u0442\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 \u2116\u00bb, \u00ab\u0440.\u0441\u0447.\u00bb, \u00ab\u0421\u0447\u0451\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044f\u00bb.\u042f \u0434\u0435\u043b\u0430\u044e \u0432\u0435\u0431\u2011\u0441\u0435\u0440\u0432\u0438\u0441, \u0433\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0443, \u0430\u00a0\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u0441\u0430\u043c\u0430. \u041d\u0438\u0436\u0435\u00a0\u2014 \u0447\u0442\u043e\u00a0\u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0430\u00a0\u0447\u0442\u043e\u00a0\u043d\u0435\u0442, \u0441\u00a0\u043a\u043e\u0434\u043e\u043c.\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u00ab\u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u0438\u00bb\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439: \u043d\u0430\u0439\u0442\u0438 \u0441\u043b\u043e\u0432\u043e \u00ab\u0411\u0418\u041a\u00bb \u0438 \u0432\u0437\u044f\u0442\u044c 9\u00a0\u0446\u0438\u0444\u0440 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0433\u043e. \u041e\u043d\u0430 \u043b\u043e\u043c\u0430\u043b\u0430\u0441\u044c \u0432\u00a0\u0442\u0440\u0451\u0445 \u043c\u0435\u0441\u0442\u0430\u0445.\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445. \u041f\u0440\u0438\u00a0\u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0438\u0437\u00a0\u0442\u0430\u0431\u043b\u0438\u0446 PDF \u0438 DOCX \u044f\u0447\u0435\u0439\u043a\u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438: \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u00ab\u0411\u0418\u041a\u00bb, \u043f\u043e\u0442\u043e\u043c \u00ab044525225\u00bb.\u041f\u043e\u0434\u043f\u0438\u0441\u0435\u0439 \u043c\u043d\u043e\u0433\u043e. \u00ab\u041a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u0447\u0435\u0442 \u2116\u00bb, \u00ab\u041a\/\u0441\u00bb, \u00ab\u043a\u043e\u0440\u0440. \u0441\u0447\u0451\u0442\u00bb, \u00ab\u041a\u043e\u0440\/\u0441\u0447\u00bb\u00a0\u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u043f\u043e\u043b\u0435.\u041f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430 \u00ab\u0431\u0430\u043d\u043a\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f. \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u00ab\u0441\u0442\u0440\u043e\u043a\u0430 \u0441\u043e \u0441\u043b\u043e\u0432\u043e\u043c \u0431\u0430\u043d\u043a\u00a0\u2014 \u044d\u0442\u043e \u0431\u0430\u043d\u043a\u00bb \u043d\u0430 \u00ab\u0418\u041d\u0412\u0415\u0421\u0422\u0422\u041e\u0420\u0413\u0411\u0410\u041d\u041a \u0410\u041e\u00bb \u0431\u0440\u0430\u043b\u043e \u0445\u0432\u043e\u0441\u0442 \u043f\u043e\u0441\u043b\u0435 \u00ab\u0431\u0430\u043d\u043a\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u043e \u00ab\u0410\u041e, \u0433. \u041c\u043e\u0441\u043a\u0432\u0430\u00bb.\u0412\u044b\u0445\u043e\u0434\u00a0\u2014 \u043e\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u00a0\u0441\u0430\u043c\u0438 \u0446\u0438\u0444\u0440\u044b: \u0443\u00a0\u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u0445 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u044b \u043f\u043e\u00a0\u0446\u0438\u0444\u0440\u0430\u043c\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0414\u043b\u0438\u043d\u0430\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0411\u0418\u041a9\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 04\u041a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u0441\u0447\u0451\u044220\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 30\u202f101\u0420\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u0439 \u0441\u0447\u0451\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043820\u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 405\u2013408import reBIK  = re.compile(r&#187;(?&lt;!\\d)(04\\d{7})(?!\\d)&#187;)CORR = re.compile(r&#187;(?&lt;!\\d)(30101\\d{15})(?!\\d)&#187;)ACC  = re.compile(r&#187;(?&lt;!\\d)(40[5-8]\\d{17})(?!\\d)&#187;)def uniq(xs):    return list(dict.fromkeys(xs))  # \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f, \u0431\u0435\u0437 \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432def find_numbers(text):    return (uniq(BIK.findall(text)),            uniq(CORR.findall(text)),            uniq(ACC.findall(text)))(?&lt;!\\d) \u0438 (?!\\d) \u0432\u0430\u0436\u043d\u044b. \u0411\u0435\u0437\u00a0\u043d\u0438\u0445 \u0438\u0437 20-\u0437\u043d\u0430\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0442\u0430\u0449\u0438\u0442\u044c \u00ab\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u00bb \u0438\u0437 11\u00a0\u0446\u0438\u0444\u0440. \u0423\u00a0\u043d\u0430\u0441 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c: \u0432\u00a0\u043f\u043e\u043b\u0435 \u00ab\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u00bb \u043f\u043e\u043f\u0430\u043b\u043e 70\u202f281\u202f067\u202f000\u00a0\u2014 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430 \u0441\u0447\u0451\u0442\u0430 40702810670000000181.\u0414\u0432\u0430 \u0431\u0430\u043d\u043a\u0430 \u0432\u00a0\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435\u041a\u043e\u0433\u0434\u0430 \u0443\u00a0\u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0434\u0432\u0430 \u0431\u0430\u043d\u043a\u0430, \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:\u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u0448\u0430\u0442\u044c\u0441\u044f. \u041a\u0430\u043a\u00a0\u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u043a\u043e\u0440\u0441\u0447\u0451\u0442 \u043a\u00a0\u043a\u0430\u043a\u043e\u043c\u0443 \u0411\u0418\u041a? \u0423\u00a0\u043a\u043e\u0440\u0441\u0447\u0451\u0442\u0430 \u0431\u0430\u043d\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0442\u0440\u0438 \u0446\u0438\u0444\u0440\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0441\u00a0\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u0442\u0440\u0435\u043c\u044f \u0446\u0438\u0444\u0440\u0430\u043c\u0438 \u0411\u0418\u041a: \u2026411 \u2194 \u2026411, \u2026593 \u2194 \u2026593. \u042d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u00a0\u0442\u043e\u0433\u043e, \u043a\u0430\u043a\u00a0\u0443\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043e\u0431\u0430 \u043d\u043e\u043c\u0435\u0440\u0430, \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u044b \u043f\u0440\u0438\u00a0\u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0441\u0442\u0440\u043e\u043a.def pair_banks(biks, cors, accs):    banks = []    for i, b in enumerate(biks):        corr = next((c for c in cors if c[-3:] == b[-3:]),                    cors[i] if i &lt; len(cors) else &#171;&#187;)        banks.append({&#171;bik&#187;: b, &#171;corr&#187;: corr,                      &#171;account&#187;: accs[i] if i &lt; len(accs) else &#171;&#187;})    return banks\u0421\u00a0\u0440\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u043c \u0441\u0447\u0451\u0442\u043e\u043c \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430 \u043d\u0435\u0442. \u0415\u0433\u043e \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u043e\u0439.\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430: \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0430\u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0451\u0442\u0430 \u0432\u00a0\u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u0445 \u0431\u0430\u043d\u043a\u0430\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044f\u0434 (\u0434\u0435\u0432\u044f\u0442\u0430\u044f \u0446\u0438\u0444\u0440\u0430), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u00a0\u0411\u0418\u041a. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d \u0411\u0430\u043d\u043a\u043e\u043c \u0420\u043e\u0441\u0441\u0438\u0438:\u0411\u0435\u0440\u0451\u043c 23\u00a0\u0446\u0438\u0444\u0440\u044b: \u00ab\u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0443\u00bb \u0438\u0437\u00a0\u0411\u0418\u041a \u0438 20\u00a0\u0446\u0438\u0444\u0440 \u0441\u0447\u0451\u0442\u0430.\u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430\u00a0\u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 3\u00a0\u0446\u0438\u0444\u0440\u044b \u0411\u0418\u041a;\u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u0441\u043f\u043e\u043d\u0434\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e\u00a0\u2014 \u00ab0\u00bb + 5-\u044f \u0438 6-\u044f \u0446\u0438\u0444\u0440\u044b \u0411\u0418\u041a.\u0423\u043c\u043d\u043e\u0436\u0430\u0435\u043c \u0446\u0438\u0444\u0440\u044b \u043d\u0430\u00a0\u0432\u0435\u0441\u0430 7, 1, 3, 7, 1, 3, \u2026.\u0411\u0435\u0440\u0451\u043c \u043c\u043b\u0430\u0434\u0448\u0438\u0439 \u0440\u0430\u0437\u0440\u044f\u0434 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c.\u0415\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 10, \u0441\u0447\u0451\u0442 \u0432\u0435\u0440\u043d\u044b\u0439.WEIGHTS = [7, 1, 3] * 8def _check(prefix, account):    digits = prefix + account    if len(digits) != 23 or not digits.isdigit():        return False    s = sum((int(d) * w) % 10 for d, w in zip(digits, WEIGHTS))    return s % 10 == 0def account_ok(bik, account):    return _check(bik[-3:], account)def corr_ok(bik, corr):    return _check(&#171;0&#187; + bik[4:6], corr)\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435:&gt;&gt;&gt; corr_ok(&#171;044525593&#187;, &#171;30101810200000000593&#187;)True&gt;&gt;&gt; account_ok(&#171;044525593&#187;, &#171;40702810602490003955&#187;)True&gt;&gt;&gt; account_ok(&#171;044525411&#187;, &#171;40702810602490003955&#187;)  # \u0441\u0447\u0451\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u0430False\u042d\u0442\u0438\u043c\u00a0\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0447\u0451\u0442\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0430 \u043a\u00a0\u0441\u0432\u043e\u0438\u043c \u0431\u0430\u043d\u043a\u0430\u043c, \u0435\u0441\u043b\u0438 \u0438\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e: \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u0440\u044b \u00ab\u0411\u0418\u041a \u00d7 \u0441\u0447\u0451\u0442\u00bb \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0443, \u0433\u0434\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f.def match_accounts(banks, accs):    left = list(accs)    for b in banks:        ok = next((a for a in left if account_ok(b[&#171;bik&#187;], a)), None)        if ok:            b[&#171;account&#187;] = ok            left.remove(ok)    return banks\u0412\u00a0\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u044d\u0442\u043e \u0434\u0430\u0451\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442: \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0441\u044f \u043d\u0430\u00a0\u043e\u0434\u043d\u0443 \u0446\u0438\u0444\u0440\u0443 \u043f\u0440\u0438\u00a0\u0440\u0443\u0447\u043d\u043e\u043c \u0432\u0432\u043e\u0434\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442 \u043f\u043e\u043b\u0435 \u0441\u0440\u0430\u0437\u0443, \u0430\u00a0\u043d\u0435\u00a0\u043f\u043e\u0441\u043b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0438 \u0438\u0437\u00a0\u0431\u0430\u043d\u043a\u0430.\u041f\u043e\u0434\u043f\u0438\u0441\u044c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445\u0414\u043b\u044f\u00a0\u043f\u043e\u043b\u0435\u0439 \u0431\u0435\u0437\u00a0\u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 (\u0418\u041d\u041d \u0440\u044f\u0434\u043e\u043c \u0441\u00a0\u041a\u041f\u041f, \u041e\u0413\u0420\u041d) \u0438\u0449\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u043e\u0439\u00a0\u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0435, \u0430\u00a0\u0435\u0441\u043b\u0438 \u0442\u0430\u043c \u043f\u0443\u0441\u0442\u043e\u00a0\u2014 \u0432\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:def after_label(lines, label_rx, value_rx, skip_rx=None):    for i, line in enumerate(lines):        if not re.search(label_rx, line, re.I):            continue        if skip_rx and re.search(skip_rx, line, re.I):            continue        for s in (line, lines[i + 1] if i + 1 &lt; len(lines) else &#171;&#187;):            m = re.search(value_rx, s)            if m:                return m.group(1)    return &#171;&#187;inn  = after_label(lines, r&#187;\\b\u0418\u041d\u041d\\b&#187;,  r&#187;(?&lt;!\\d)(\\d{12}|\\d{10})(?!\\d)&#187;)kpp  = after_label(lines, r&#187;\\b\u041a\u041f\u041f\\b&#187;,  r&#187;(?&lt;!\\d)(\\d{9})(?!\\d)&#187;)ogrn = after_label(lines, r&#187;\\b\u041e\u0413\u0420\u041d&#187;,   r&#187;(?&lt;!\\d)(\\d{15}|\\d{13})(?!\\d)&#187;)skip_rx \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f\u00a0\u043f\u043e\u0447\u0442\u044b: \u00ab\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430\u00bb \u043d\u0443\u0436\u043d\u0430, \u0430 \u00ab\u0411\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u044f, buh1_kp@maill.ru\u00bb\u00a0\u2014 \u043d\u0435\u0442. \u0411\u0435\u0437\u00a0\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0430 \u0431\u0443\u0445\u0433\u0430\u043b\u0442\u0435\u0440\u0438\u0438.\u0421\u043a\u043b\u0435\u0435\u043d\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u043d\u043a\u043e\u0432\u0418\u0437\u00a0\u044f\u0447\u0435\u0435\u043a DOCX \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0431\u0430\u043d\u043a\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0439\u0442\u0438 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439, \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0438\u043b\u0438\u00a0\u043f\u0440\u043e\u0431\u0435\u043b:\u0424\u0418\u041b\u0418\u0410\u041b \u00ab\u0426\u0415\u041d\u0422\u0420\u0410\u041b\u042c\u041d\u042b\u0419\u00bb \u0411\u0410\u041d\u041a\u0410 \u0412\u0422\u0411 (\u041f\u0410\u041e): \u0410\u041e \u00ab\u0410\u041b\u042c\u0424\u0410\u2011\u0411\u0410\u041d\u041a\u00bb\u0414\u0435\u043b\u0438\u043c \u043f\u043e\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f\u043c \u0438 \u043f\u043e\u00a0\u043d\u0430\u0447\u0430\u043b\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u00a0\u2014 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u043a\u043e\u0431\u043a\u0438 \u0438\u043b\u0438\u00a0\u043a\u0430\u0432\u044b\u0447\u043a\u0438:SPLIT = re.compile(r&#8217;\\s*[:|;]\\s*|(?&lt;=[)\u00bb&#187;])\\s+(?=(?:\u0424\u0418\u041b\u0418\u0410\u041b|\u041f\u0410\u041e|\u0410\u041e|\u041e\u041e\u041e|\u0410\u041a\u0411|\u041a\u0411)\\b)&#8217;)def bank_names(text):    lines = [l for l in text.splitlines()             if re.search(r&#187;\u0431\u0430\u043d\u043a&#187;, l, re.I)             and not re.search(r&#187;\\b(\u0431\u0438\u043a|\u0441\u0447[\u0435\u0451]\u0442|\u0440\/\u0441|\u043a\/\u0441)\\b|\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442&#187;, l, re.I)]    joined = &#187; &#171;.join(re.sub(r&#187;(?i)^(\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435\\s+\u0431\u0430\u043d\u043a\u0430|\u0431\u0430\u043d\u043a)\\s*[:\\-]?\\s*&#187;, &#171;&#187;, l) for l in lines)    return [p.strip(&#187; ,&#187;) for p in SPLIT.split(joined) if p and len(p.strip(&#187; ,&#187;)) &gt; 2]\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u00a0\u043f\u0430\u0440\u0430\u043c \u0411\u0418\u041a\/\u043a\u043e\u0440\u0441\u0447\u0451\u0442 \u043f\u043e\u00a0\u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u0415\u0441\u043b\u0438 \u0431\u0430\u043d\u043a\u043e\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e, \u043c\u044b \u043d\u0435\u00a0\u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0435\u043c, \u0430\u00a0\u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u044b\u0431\u043e\u0440: \u00ab\u0412 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 2\u00a0\u0431\u0430\u043d\u043a\u0430\u00a0\u2014 \u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c?\u00bb.\u0427\u0442\u043e\u00a0\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c\u041d\u0430\u00a0\u0442\u0440\u0451\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u0445 \u0441\u00a0\u0440\u0430\u0437\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u043e\u0439 (\u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u00a0PDF, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u00a0DOCX, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u00a0PDF) \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u043f\u0440\u0430\u0432\u043e\u043a \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u043e\u043b\u044f. \u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:\u041e\u043f\u0438\u0440\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430\u00a0\u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430\u00a0\u043d\u0435\u00a0\u043d\u0430\u00a0\u043f\u043e\u0434\u043f\u0438\u0441\u0438. \u0423\u00a0\u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u043e\u0432 \u0436\u0451\u0441\u0442\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b.\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b. \u042d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442\u00a0\u043e\u043f\u0435\u0447\u0430\u0442\u043e\u043a \u0438 \u043e\u0442\u00a0\u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u0447\u0435\u0442\u043e\u0432.\u041d\u0435\u00a0\u0443\u0433\u0430\u0434\u044b\u0432\u0430\u0439\u0442\u0435, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e. \u0421\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u0435\u0448\u0435\u0432\u043b\u0435, \u0447\u0435\u043c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043b\u0430\u0442\u0451\u0436\u043a\u0443.\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043d\u0430\u00a0\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0445. \u041a\u0430\u0436\u0434\u0430\u044f \u043d\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0430 \u043d\u043e\u0432\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443, \u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0432\u00a0\u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u0445, \u0430\u00a0\u043d\u0435\u00a0\u0432\u00a0\u043a\u043e\u0434\u0435.\u0415\u0441\u043b\u0438 \u0443\u00a0\u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u00ab\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u00a0\u0440\u0430\u0437\u0431\u0435\u0440\u0451\u0442\u0441\u044f\u00bb,\u00a0\u2014 \u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0432\u00a0\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e\u00a0\u0435\u0449\u0451 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u044e\u0442.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1102682\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-501339","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=501339"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501339\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=501339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=501339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=501339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}