{"id":4811,"date":"2021-05-28T18:00:11","date_gmt":"2021-05-28T18:00:11","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=4811"},"modified":"2026-03-30T14:05:54","modified_gmt":"2026-03-30T14:05:54","slug":"regexp-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/ru\/docs\/wordpress\/accelerator\/settings-accel\/regexp-accel","title":{"rendered":"\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0410\u043a\u0441\u0435\u043b\u0435\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f WordPress"},"content":{"rendered":"<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B5%D0%B3%D1%83%D0%BB%D1%8F%D1%80%D0%BD%D1%8B%D0%B5_%D0%B2%D1%8B%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F\" rel=\"nofollow noopener\" target=\"_blank\">\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/a> &#8211; \u044d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043f\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c.\n<\/p>\n<p>\n  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c\u00a0\u0441\u043a\u0440\u0438\u043f\u0442 Amazon Advertising \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e:\n<\/p>\n<p><code class=\"p\">amzn_assoc_placement = \"adunit0\";<br \/>amzn_assoc_enable_interest_ads = \"true\";<br \/>amzn_assoc_tracking_id = \"baskingridgeh-20\";<\/code>\n<\/p>\n<p>\n  \u0418\u0442\u043e\u0433\u043e, \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e \u0435\u0433\u043e \u0442\u0435\u043b\u0443 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c:\n<\/p>\n<p><code class=\"p\">@(?:^|\\W)amzn_assoc_placement\\s*=\\s*[\\'\"][\\w\\-]+[\\'\"]@<\/code>\n<\/p>\n<p>\n  \u0414\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:\n<\/p>\n<p><code class=\"p\">&lt;script src=\"\/dir\/abc.js\"&gt;<\/code>\n<\/p>\n<p>\n  \u0418\u0442\u0430\u043a, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e:\n<\/p>\n<p><code>@\/abc\\.js@<\/code> \u0438\u043b\u0438 <code>src:@\/abc\\.js@<\/code>, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432 <code>src<\/code> (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0438\u0436\u0435).\n<\/p>\n<p>\n  \u0418 \u043c\u044b \u043c\u043e\u0436\u0435\u043c <a href=\"https:\/\/regex101.com\/\" rel=\"nofollow noopener\" target=\"_blank\"><strong>\u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b<\/strong><\/a> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441.\n<\/p>\n<h2>\n  \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f<br \/>\n<\/h2>\n<h3>\n  \u041f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043e\u0431\u043b\u0430\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u0441\u0442\u0438\u043b\u0435\u0439 \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<br \/>\n<\/h3>\n<p>\n  \u0412 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u0445 \u0443 <a href=\".\/settings-styles-accel#not_critical\">\u0441\u0442\u0438\u043b\u0435\u0439<\/a> \u0438 <a href=\".\/settings-scripts-accel#non_critical\">\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0442\u0435\u043b\u043e, \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043b\u0438 URL-\u0430\u0434\u0440\u0435\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b:\n<\/p>\n<ul>\n<li><strong>src<\/strong>\n<p style=\"text-align:left\">\n      \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443<span style=\"font-size:12pt\"> <\/span>\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430<span style=\"font-size:12pt\"> <\/span><code>src<\/code><span style=\"font-size:12pt\">.<\/span>\n    <\/p>\n<\/li>\n<li><strong>id<\/strong>\n<p style=\"text-align:left\">\n      \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443<span style=\"font-size:12pt\"> <\/span>\u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430<span style=\"font-size:12pt\"> <\/span><code>id<\/code><span style=\"font-size:12pt\"> .<\/span>\n    <\/p>\n<\/li>\n<li><strong>body<\/strong>\n<p style=\"text-align:left\">\n      \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c \u0442\u0435\u043b\u0430. \u0422\u0435\u043b\u043e \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 (\u0438\u043b\u0438 \u0441\u0442\u0438\u043b\u044f), \u0442\u0430\u043a \u0438 \u0438\u0437 URL.\n    <\/p>\n<\/li>\n<\/ul>\n<p>\n  \u042d\u0442\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>src,body<\/code><span style=\"font-size:12pt\"> <\/span>\u0438\u043b\u0438<span style=\"font-size:12pt\"> <\/span><code>id,src<\/code><span style=\"font-size:12pt\"> <\/span>\u0438 \u0442.<span style=\"font-size:12pt\"> \u0434.<\/span> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>src,body:@abc@<\/code> \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0432 <code>src<\/code> \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 \u0438 \u0442\u0435\u043b\u0435 \u0441 <code>abc<\/code>.\n<\/p>\n<p>\n  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b, \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u043c\u0435\u0441\u0442\u0430\u0445. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>id,src,body:@abc@<\/code><span style=\"font-size:12pt\"> <\/span>\u0440\u0430\u0432\u043d\u043e<span style=\"font-size:12pt\"> <\/span><code>@abc@<\/code>.\n<\/p>\n<h3><a id=\"conditions\"><\/a>\u0423\u0441\u043b\u043e\u0432\u0438\u044f<br \/>\n<\/h3>\n<p>\n  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u043a \u043d\u0438\u043c<span style=\"font-size:12pt\"> <\/span><code>=<\/code><span style=\"font-size:12pt\"> <\/span>\u0438\u043b\u0438<span style=\"font-size:12pt\"> <\/span><code>!=<\/code><span style=\"font-size:12pt\"> <\/span>\u0438 \u0442\u043e\u0447\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 &#8216;&amp;&#8217;). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<span style=\"font-size:12pt\"> <\/span><code>, @Ab\\w\\wef$@ = Abcdef &amp; @\\Fed(\\w)b(\\w\\)$@ != ca<\/code>. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0430 \u043f\u0443\u0441\u0442\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c<span style=\"font-size:12pt\"> <\/span><code>!<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,<span style=\"font-size:12pt\"> <\/span><code>!@Ab\\w\\wef$@<\/code>.\n<\/p>\n<h2>\n  \u041f\u0440\u0438\u043c\u0435\u0440\u044b<br \/>\n<\/h2>\n<p>\n  \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0441 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u043c\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0441 <code>myid-<\/code>:\n<\/p>\n<p><code class=\"p\">id:@^myid-@<\/code>\n<\/p>\n<p>\n  \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 <code>aaa<\/code>:\n<\/p>\n<p><code class=\"p\">!src:@.+@ &amp; body:@aaa@<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f &#8211; \u044d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u043f\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c\u00a0\u0441\u043a\u0440\u0438\u043f\u0442 Amazon Advertising \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e: amzn_assoc_placement = &#8220;adunit0&#8221;;amzn_assoc_enable_interest_ads = &#8220;true&#8221;;amzn_assoc_tracking_id = &#8220;baskingridgeh-20&#8243;; \u0418\u0442\u043e\u0433\u043e, \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u043e \u0435\u0433\u043e \u0442\u0435\u043b\u0443 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c: @(?:^|\\W)amzn_assoc_placement\\s*=\\s*[\\'&#8221;][\\w\\-]+[\\'&#8221;]@ \u0414\u0440\u0443\u0433\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0435\u0441\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442: &lt;script src=&#8221;\/dir\/abc.js&#8221;&gt;&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":4813,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[817],"tags":[],"class_list":["post-4811","doc","type-doc","status-publish","hentry","category-accelerator"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/doc\/4811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/comments?post=4811"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/doc\/4813"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/media?parent=4811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/categories?post=4811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/ru\/api\/wp\/v2\/tags?post=4811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}