{"id":10790,"date":"2023-12-29T00:03:06","date_gmt":"2023-12-28T20:33:06","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/regex-matching-%d8%af%d8%b1-%db%8c%da%a9-bash-if-statement\/"},"modified":"2023-12-29T00:03:06","modified_gmt":"2023-12-28T20:33:06","slug":"regex-matching-%d8%af%d8%b1-%db%8c%da%a9-bash-if-statement","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/regex-matching-%d8%af%d8%b1-%db%8c%da%a9-bash-if-statement\/","title":{"rendered":"Regex Matching \u062f\u0631 \u06cc\u06a9 Bash if Statement"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/regex-matching-%d8%af%d8%b1-%db%8c%da%a9-bash-if-statement\/#regex_matching_%d8%af%d8%b1_%db%8c%da%a9_bash_if_statement\" >Regex Matching \u062f\u0631 \u06cc\u06a9 Bash if Statement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/regex-matching-%d8%af%d8%b1-%db%8c%da%a9-bash-if-statement\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<\/p>\n<div id=\"wpbody\">\n<p>\u062f\u0631 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 Bash\u060c \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u0645\u0639\u0631\u0648\u0641 \u0628\u0647 regex\u060c \u0627\u0628\u0632\u0627\u0631\u06cc \u0645\u0648\u062b\u0631 \u0628\u0631\u0627\u06cc \u062a\u0637\u0628\u06cc\u0642 \u0627\u0644\u06af\u0648 \u0648 \u067e\u0631\u062f\u0627\u0632\u0634 \u0645\u062a\u0646 \u0647\u0633\u062a\u0646\u062f.  \u062f\u0633\u062a\u0648\u0631 if \u06cc\u06a9 \u0633\u0627\u062e\u062a\u0627\u0631 \u06a9\u0646\u062a\u0631\u0644\u06cc \u0631\u0627\u06cc\u062c \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc Bash \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0628\u0631\u062e\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f \u0631\u0648\u06cc \u0634\u0631\u0627\u06cc\u0637 \u062e\u0627\u0635  \u062f\u0631 Bash\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 regex \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u0627\u0644\u06af\u0648\u0647\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a if \u0628\u0631\u0627\u06cc \u06a9\u0646\u062a\u0631\u0644 \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u062f\u0631 \u0645\u0648\u0631\u062f \u062a\u0637\u0628\u06cc\u0642 Regex \u062f\u0631 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 Bash if \u0627\u0633\u062a.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"regex_matching_%d8%af%d8%b1_%db%8c%da%a9_bash_if_statement\"><\/span>Regex Matching \u062f\u0631 \u06cc\u06a9 Bash if Statement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0646\u062d\u0648 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 regex \u062f\u0631 \u06cc\u06a9 \u062f\u0633\u062a\u0648\u0631 Bash if \u0633\u0627\u062f\u0647 \u0627\u0633\u062a \u0632\u06cc\u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0639\u0645\u0644\u06af\u0631 =~ \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u062f\u0646 \u06cc\u06a9 \u0631\u0634\u062a\u0647 \u0628\u0627 \u06cc\u06a9 \u0627\u0644\u06af\u0648\u06cc \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co0\">#!\/bin\/bash<\/span><br \/>\n<span class=\"kw1\">\u0627\u06af\u0631<\/span> <span class=\"br0\">[<\/span><span class=\"br0\">[<\/span> <span class=\"st0\">&#8220;Hello Linux&#8221;<\/span> =~ ^Hello.<span class=\"sy0\">*<\/span> <span class=\"br0\">]<\/span><span class=\"br0\">]<\/span>; <span class=\"kw1\">\u0633\u067e\u0633<\/span><\/p>\n<p>  <span class=\"kw3\">\u0627\u06a9\u0648<\/span> <span class=\"st0\">&#8220;\u0645\u0637\u0627\u0628\u0642\u062a \u067e\u06cc\u062f\u0627 \u0634\u062f!&#8221;<\/span><br \/>\n<span class=\"kw1\">\u062f\u06cc\u06af\u0631<\/span><\/p>\n<p>  <span class=\"kw3\">\u0627\u06a9\u0648<\/span> <span class=\"st0\">&#8220;\u0647\u06cc\u0686 \u0645\u0648\u0631\u062f \u0645\u0637\u0627\u0628\u0642\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.&#8221;<\/span><br \/>\n<span class=\"kw1\">\u0641\u06cc<\/span><\/div>\n<\/div>\n<p>\u062f\u0633\u062a\u0648\u0631 if \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u0631\u0634\u062a\u0647 &#8220;Hello Linux&#8221; \u0628\u0627 \u0627\u0644\u06af\u0648\u06cc \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 &#8220;^Hello.*&#8221; \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f \u06cc\u0627 \u062e\u06cc\u0631.  \u0646\u0645\u0627\u062f caret (^) \u062f\u0631 \u0627\u0644\u06af\u0648 \u0634\u0631\u0648\u0639 \u0631\u0634\u062a\u0647 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0648 \u0633\u062a\u0627\u0631\u0647 \u0646\u0642\u0637\u0647 \u0627\u06cc (. ) \u0628\u0627 \u0647\u0631 \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631\u06cc \u0635\u0641\u0631 \u06cc\u0627 \u0686\u0646\u062f \u0628\u0627\u0631 \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0645\u0637\u0627\u0628\u0642\u062a \u067e\u06cc\u062f\u0627 \u0634\u0648\u062f\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u0628\u0644\u0648\u06a9 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f.  \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u00abMatch found!\u00bb \u0631\u0627 \u0686\u0627\u067e \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.  \u0628\u0647 console.  \u0627\u06af\u0631 \u0645\u0637\u0627\u0628\u0642\u062a \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0631\u0627 \u062f\u0631 \u0628\u0644\u0648\u06a9 else \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06a9\u0647 \u00ab\u0647\u06cc\u0686 \u0645\u0637\u0627\u0628\u0642\u062a \u06cc\u0627\u0641\u062a \u0646\u0634\u062f\u00bb \u0631\u0627 \u0686\u0627\u067e \u0645\u06cc\u200c\u06a9\u0646\u062f.  \u0628\u0647 console:<\/p>\n<p><img decoding=\"async\" fetchpriority=\"high\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png\" alt=\"\" width=\"602\" height=\"184\" class=\"alignnone size-full wp-image-314726\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png 602w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/04\/Regex-Matching-in-a-Bash-if-Statement-1-300x92.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" title=\"\"><\/p>\n<p>\u0634\u0645\u0627 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 regex \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u0628\u0627 \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u06cc\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a Bash \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u06cc\u06a9 \u0645\u062b\u0627\u0644 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\">\n<div class=\"bash codecolorer\"><span class=\"co0\">#!\/bin\/bash<\/span><\/p>\n<p><span class=\"re2\">\u062e<\/span>=<span class=\"st0\">&#8220;\u0633\u0644\u0627\u0645 \u0644\u06cc\u0646\u0648\u06a9\u0633&#8221;<\/span><\/p>\n<p><span class=\"kw1\">\u0627\u06af\u0631<\/span> <span class=\"br0\">[<\/span><span class=\"br0\">[<\/span> <span class=\"re1\">$str<\/span> =~ ^Hello.<span class=\"sy0\">*<\/span> <span class=\"br0\">]<\/span><span class=\"br0\">]<\/span>; <span class=\"kw1\">\u0633\u067e\u0633<\/span><\/p>\n<p>  <span class=\"kw3\">\u0627\u06a9\u0648<\/span> <span class=\"st0\">&#8220;\u0645\u0637\u0627\u0628\u0642\u062a \u067e\u06cc\u062f\u0627 \u0634\u062f!&#8221;<\/span><br \/>\n<span class=\"kw1\">\u062f\u06cc\u06af\u0631<\/span><\/p>\n<p>  <span class=\"kw3\">\u0627\u06a9\u0648<\/span> <span class=\"st0\">&#8220;\u0647\u06cc\u0686 \u0645\u0648\u0631\u062f \u0645\u0637\u0627\u0628\u0642\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f.&#8221;<\/span><br \/>\n<span class=\"kw1\">\u0641\u06cc<\/span><\/div>\n<\/div>\n<p>\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u062f\u0633\u062a\u0648\u0631 if \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0622\u06cc\u0627 \u0645\u062a\u063a\u06cc\u0631 &#8220;str&#8221; \u200b\u200b\u0628\u0627 \u0627\u0644\u06af\u0648\u06cc \u0639\u0628\u0627\u0631\u062a \u0645\u0646\u0638\u0645 &#8220;^Hello.*&#8221; \u0645\u0637\u0627\u0628\u0642\u062a \u062f\u0627\u0631\u062f \u06cc\u0627 \u062e\u06cc\u0631.  \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u062a\u0642\u0633\u06cc\u0645 \u06a9\u0644\u0645\u0647 \u0648 \u06af\u0633\u062a\u0631\u0634 \u0646\u0627\u0645 \u0641\u0627\u06cc\u0644\u060c \u0645\u062a\u063a\u06cc\u0631 \u062f\u0631 \u06af\u06cc\u0648\u0645\u0647 \u0647\u0627\u06cc \u062f\u0648\u062a\u0627\u06cc\u06cc \u0645\u062d\u0635\u0648\u0631 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<p><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" alt=\"\" width=\"602\" height=\"191\" class=\"alignnone size-full wp-image-314727\" data-lazy-srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703795586_662_Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png 602w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/04\/Regex-Matching-in-a-Bash-if-Statement-2-300x95.png 300w\" data-lazy-sizes=\"(max-width: 602px) 100vw, 602px\" data-lazy-src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703795586_662_Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png\" http: title=\"\"><img decoding=\"async\" src=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703795586_662_Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png\" alt=\"\" width=\"602\" height=\"191\" class=\"alignnone size-full wp-image-314727\" srcset=\"https:\/\/rasanegar.com\/blog\/wp-content\/uploads\/2023\/12\/1703795586_662_Regex-Matching-\u062f\u0631-\u06cc\u06a9-Bash-if-Statement.png 602w, https:\/\/linuxhint.com\/wp-content\/uploads\/2023\/04\/Regex-Matching-in-a-Bash-if-Statement-2-300x95.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" title=\"\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0633\u062a\u0648\u0631 Bash if \u0628\u0627 \u062a\u0637\u0628\u06cc\u0642 regex \u0627\u0628\u0632\u0627\u0631\u06cc \u0645\u0648\u062b\u0631 \u0628\u0631\u0627\u06cc \u067e\u0631\u062f\u0627\u0632\u0634 \u0645\u062a\u0646 \u0648 \u062a\u0637\u0628\u06cc\u0642 \u0627\u0644\u06af\u0648 \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc Bash \u0627\u0633\u062a.  \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u062f\u0646 \u0631\u0648\u0634 \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc \u0634\u0645\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f \u0631\u0648\u06cc \u0645\u0639\u06cc\u0627\u0631\u0647\u0627\u06cc \u062e\u0627\u0635  \u0628\u0627 \u062a\u0633\u0644\u0637 \u0628\u0631 \u062a\u0637\u0627\u0628\u0642 regex \u062f\u0631 Bash\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0622\u0645\u062f\u062a\u0631 \u0648 \u0645\u0624\u062b\u0631\u062a\u0631\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f \u06a9\u0647 \u06af\u0631\u062f\u0634 \u06a9\u0627\u0631 \u0634\u0645\u0627 \u0631\u0627 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u062f\u0631 \u0648\u0642\u062a \u0648 \u062a\u0644\u0627\u0634 \u0634\u0645\u0627 \u0635\u0631\u0641\u0647\u200c\u062c\u0648\u06cc\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.\n<\/p>\n<\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1402-12-29 00:03:03<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;10790&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;Regex Matching \u062f\u0631 \u06cc\u06a9 Bash if Statement&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u062f\u0631 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 Bash\u060c \u0639\u0628\u0627\u0631\u0627\u062a \u0645\u0646\u0638\u0645 \u0645\u0639\u0631\u0648\u0641 \u0628\u0647 regex\u060c \u0627\u0628\u0632\u0627\u0631\u06cc \u0645\u0648\u062b\u0631 \u0628\u0631\u0627\u06cc \u062a\u0637\u0628\u06cc\u0642 \u0627\u0644\u06af\u0648 \u0648 \u067e\u0631\u062f\u0627\u0632\u0634 \u0645\u062a\u0646 \u0647\u0633\u062a\u0646\u062f. \u062f\u0633\u062a\u0648\u0631 if \u06cc\u06a9 \u0633\u0627\u062e\u062a\u0627\u0631 \u06a9\u0646\u062a\u0631\u0644\u06cc \u0631\u0627\u06cc\u062c \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0647\u0627\u06cc Bash \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0628\u0631\u062e\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f \u0631\u0648\u06cc \u0634\u0631\u0627\u06cc\u0637 \u062e\u0627\u0635 \u062f\u0631 Bash\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 regex \u0628\u0631\u0627\u06cc [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":10791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2740,1062],"tags":[2745,2749,2742,2741],"class_list":{"0":"post-10790","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-bash-programming","8":"category-bash-script","9":"tag-2745","10":"tag--bash","12":"tag---bash"},"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=10790"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10790\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/10791"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=10790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=10790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=10790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}