{"id":2058,"date":"2020-07-20T18:35:52","date_gmt":"2020-07-20T15:35:52","guid":{"rendered":"https:\/\/artem.services\/?p=2017"},"modified":"2020-11-09T13:57:01","modified_gmt":"2020-11-09T10:57:01","slug":"2058","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=2058&lang=en","title":{"rendered":"Nginx &#8212; Regular Expression Tester"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1041\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo.png\" alt=\"\" width=\"1280\" height=\"270\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo.png 1280w, https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo-300x63.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo-768x162.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo-1024x216.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/04\/Nginx-logo-954x201.png 954w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>For quick testing of <strong>Nginx<\/strong> regular expressions, you can use a ready-made docker image. To do this, you need to clone the <a href=\"https:\/\/github.com\/nginxinc\/NGINX-Demos\" target=\"_blank\" rel=\"noopener noreferrer\">NGINX-Demos<\/a> repository:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/nginxinc\/NGINX-Demos\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Follow to the &quot;<strong>nginx-regex-tester<\/strong>&quot; directory:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd NGINX-Demos\/nginx-regex-tester\/\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>And launch the container using &quot;<strong>docker-compose<\/strong>&quot;:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ndocker-compose up -d\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>And open the next page:<\/p>\n<blockquote><p>http:\/\/localhost\/regextester.php<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-2018\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50.png\" alt=\"\" width=\"1492\" height=\"1004\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50.png 1492w, https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50-300x202.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50-1024x689.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50-768x517.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50-954x642.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/07\/Screenshot-2020-07-20-at-17.16.50-1354x911.png 1354w\" sizes=\"(max-width: 1492px) 100vw, 1492px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; For quick testing of Nginx regular expressions, you can use a ready-made docker image. To do this, you need to clone the NGINX-Demos repository: &nbsp; Follow to the &quot;nginx-regex-tester&quot; directory: &nbsp; And launch the container using &quot;docker-compose&quot;: &nbsp; And open the next page: http:\/\/localhost\/regextester.php &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1691,975,341],"tags":[771,345,1695,1697],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2058"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2058"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2058\/revisions"}],"predecessor-version":[{"id":2060,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2058\/revisions\/2060"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}