{"id":109267,"date":"2025-05-16T21:50:12","date_gmt":"2025-05-16T18:20:12","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d8%ad%d8%b6%d9%88%d8%b1-%d8%af%d8%b1-%d8%a7%d9%84%da%af%d9%88%db%8c-%d8%a8%d8%a7-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%b1%d8%b4%d8%aa%d9%87-%d9%87\/"},"modified":"2025-05-16T21:50:12","modified_gmt":"2025-05-16T18:20:12","slug":"%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d8%ad%d8%b6%d9%88%d8%b1-%d8%af%d8%b1-%d8%a7%d9%84%da%af%d9%88%db%8c-%d8%a8%d8%a7-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%b1%d8%b4%d8%aa%d9%87-%d9%87","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d8%ad%d8%b6%d9%88%d8%b1-%d8%af%d8%b1-%d8%a7%d9%84%da%af%d9%88%db%8c-%d8%a8%d8%a7-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%d8%b1%d8%b4%d8%aa%d9%87-%d9%87\/","title":{"rendered":"\u062a\u0623\u06cc\u06cc\u062f \u062d\u0636\u0648\u0631 \u062f\u0631 \u0627\u0644\u06af\u0648\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0631\u0634\u062a\u0647 \u0647\u0627"},"content":{"rendered":"<div data-article-id=\"2494604\" id=\"article-body\">\n<p><strong>\u0645\u0642\u062f\u0645\u0647<\/strong><br \/>\u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u06a9\u0647 \u062c\u0633\u062a\u062c\u0648 \u06a9\u0646\u062f \u0622\u06cc\u0627 \u0631\u0634\u062a\u0647 \u06a9\u0648\u0686\u06a9\u062a\u0631 \u062f\u0631 \u0631\u0634\u062a\u0647 \u062f\u06cc\u06af\u0631\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f.<br \/>\u0641\u0631\u0636 \u0628\u0631 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0637\u0648\u0644 \u0631\u0634\u062a\u0647 \u06a9\u0648\u0686\u06a9\u062a\u0631 \u06a9\u0645\u062a\u0631 \u0627\u0632 \u0637\u0648\u0644 \u0631\u0634\u062a\u0647 \u0628\u0632\u0631\u06af\u062a\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f<\/p>\n<p><strong>\u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645<\/strong><\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>Input Get the text string\nInput Get the Pattern string\nProcess: Create patternExists variable and set to fault\nCondition 1: Have we reached the end of the text string\n    Process: get the first\/next character of text string and store it in a variable called \"char0\"   \n    Condition: have we reached the end of the pattern text\n        Process: Get the char0+\"index of pattern string\" of text string and store it in variable \"char1\"\n        Process: get the first\/next character of pattern string and store it in variable \"char2\"\n        Condition:Is char1 and char2 the same:\n            Condition: Have we reached the end of the pattern string:\n                Process: set patternExists varible to true\n                Break \n            Condition Else:\n                Break\n\n        Condition Else:\n            Process: set patternExists variable to false\n            Break\n\n\nPrint the status of patternExists\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0646\u0645\u0648\u062f\u0627\u0631 \u062c\u0631\u06cc\u0627\u0646<\/strong><br \/><img decoding=\"async\" src=\"https:\/\/media2.dev.to\/dynamic\/image\/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhu20tvvbp4qpvhv10amd.png\" alt=\"\u0634\u0631\u062d \u062a\u0635\u0648\u06cc\u0631\" loading=\"lazy\" width=\"800\" height=\"450\" title=\"\"><\/p>\n<p><strong>\u0634\u0628\u0647<\/strong><\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>text= get input\npattern =get input\npatternExists= False\nWhile end of text no reached (index using i)\n    char0= character at current index number\n    While end of pattern text is not reached (index using j)\n        char1=text[i+j]\n        char2=pattern[j]\n        if char1==char2\n            patternExists=True    \n        else\n            patternExists=False\n            break\n    if patternExists==True\n        break\nif patternExists==true\n    print pattern exists in text\nelse\n    print pattern does not exist in text\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u067e\u0627\u06cc\u0627\u0646<\/strong><br \/>\u06a9\u062f \u067e\u06cc\u0634\u0646\u0647\u0627\u062f\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062d\u0644\u0642\u0647 \u0647\u0627 \u0647\u0646\u06af\u0627\u0645 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0627\u0644\u06af\u0648\u06cc \u0648 \u06a9\u0627\u0647\u0634 \u0645\u06cc \u06cc\u0627\u0628\u062f. <br \/>\u0627\u0641\u0632\u0648\u0646\u06af\u06cc \u0648\u0642\u062a\u06cc \u06a9\u0647 \u0627\u0644\u06af\u0648\u06cc \u0646\u0627\u0633\u0627\u0632\u06af\u0627\u0631 \u0645\u06cc \u0634\u0648\u062f \u0627\u0632 \u0628\u06cc\u0646 \u0645\u06cc \u0631\u0648\u062f.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0642\u062f\u0645\u0647\u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u0628\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u06a9\u0647 \u062c\u0633\u062a\u062c\u0648 \u06a9\u0646\u062f \u0622\u06cc\u0627 \u0631\u0634\u062a\u0647 \u06a9\u0648\u0686\u06a9\u062a\u0631 \u062f\u0631 \u0631\u0634\u062a\u0647 \u062f\u06cc\u06af\u0631\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f.\u0641\u0631\u0636 \u0628\u0631 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0637\u0648\u0644 \u0631\u0634\u062a\u0647 \u06a9\u0648\u0686\u06a9\u062a\u0631 \u06a9\u0645\u062a\u0631 \u0627\u0632 \u0637\u0648\u0644 \u0631\u0634\u062a\u0647 \u0628\u0632\u0631\u06af\u062a\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u0627\u0644\u06af\u0648\u0631\u06cc\u062a\u0645 Input Get the text string Input Get the Pattern string Process: Create patternExists variable and set to fault Condition 1: Have we reached &hellip;<\/p>\n","protected":false},"author":2,"featured_media":109268,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/media2.dev.to\/dynamic\/image\/width=1000,height=500,fit=cover,gravity=auto,format=auto\/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fos34iamor55k8pewoihz.png","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-109267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/109267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=109267"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/109267\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/109268"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=109267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=109267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=109267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}