{"id":9099,"date":"2024-02-29T14:56:03","date_gmt":"2024-02-29T05:56:03","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=9099"},"modified":"2024-02-29T14:56:03","modified_gmt":"2024-02-29T05:56:03","slug":"regex-%eb%ac%b8%ec%9e%90-%ec%a0%9c%ec%99%b8-%eb%a1%9c%ec%a7%81","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=9099","title":{"rendered":"Regex \ubb38\uc790 \uc81c\uc678 \ub85c\uc9c1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">REPUBLIC OF&#8221;\ub97c \uc81c\uc678\ud558\uace0 &#8220;OF&#8221;\uac00 \ud3ec\ud568\ub41c \uc904\uc744 \ucc3e\uae30 \uc704\ud55c \uc815\uaddc \ud45c\ud604\uc2dd\uc744 \uc791\uc131\ud560 \ub54c, Lookahead\uc640 Lookbehind \uac19\uc740 \uc815\uaddc \ud45c\ud604\uc2dd\uc758 \uace0\uae09 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec &#8220;REPUBLIC OF&#8221;\uac00 \uc544\ub2cc &#8220;OF&#8221;\ub97c \ud3ec\ud568\ud558\ub294 \ubb38\uc790\uc5f4\uc744 \ub9e4\uce6d\ud560 \uc218 \uc788\ub294 \ud328\ud134\uc744 \uad6c\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\ub2e4\uc74c\uc740 &#8220;REPUBLIC OF&#8221;\ub97c \ud3ec\ud568\ud558\uc9c0 \uc54a\uc73c\uba74\uc11c &#8220;OF&#8221;\ub97c \ud3ec\ud568\ud558\ub294 \uc904\uc744 \ucc3e\uae30 \uc704\ud55c \uc815\uaddc \ud45c\ud604\uc2dd\uc758 \uc608\uc785\ub2c8\ub2e4:<\/h4>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"regex\" >(?&lt;!REPUBLIC )\\bOF\\b<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\uc774 \uc815\uaddc \ud45c\ud604\uc2dd\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\ub3d9\ud569\ub2c8\ub2e4:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>(?&lt;!REPUBLIC )\ub294 Negative Lookbehind\ub85c, &#8220;REPUBLIC &#8221; \ubb38\uc790\uc5f4\uc774 &#8220;OF&#8221; \uc55e\uc5d0 \uc624\uc9c0 \uc54a\ub294 \uacbd\uc6b0\uc5d0\ub9cc \ub9e4\uce6d\uc744 \ud5c8\uc6a9\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\\bOF\\b\ub294 &#8220;OF&#8221;\ub77c\ub294 \ub2e8\uc5b4\uac00 \uacbd\uacc4\uc5d0 \uc704\uce58\ud55c \uacbd\uc6b0\ub97c \ucc3e\uc2b5\ub2c8\ub2e4. \\b\ub294 \ub2e8\uc5b4 \uacbd\uacc4\ub97c \ub098\ud0c0\ub0b4\ubbc0\ub85c, &#8220;OF&#8221;\uac00 \ub3c5\ub9bd\ub41c \ub2e8\uc5b4\ub85c \uc874\uc7ac\ud560 \ub54c \ub9e4\uce6d\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">C#\uc5d0\uc11c \uc774 \uc815\uaddc \ud45c\ud604\uc2dd\uc744 \uc0ac\uc6a9\ud558\ub294 \uc608\uc81c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" title=\"csharp\" >using System;\nusing System.Text.RegularExpressions;\n\nclass Program\n{\n    static void Main()\n    {\n        string text = \"This is OF example.\\nREPUBLIC OF example should not match.\\nOnly OF will match.\";\n\n        \/\/ \"REPUBLIC OF\"\ub97c \uc81c\uc678\ud558\uace0 \"OF\"\ub97c \ud3ec\ud568\ud558\ub294 \uc904 \ucc3e\uae30\n        var pattern = @\"(?&lt;!REPUBLIC )\\bOF\\b\";\n        var matches = Regex.Matches(text, pattern);\n\n        foreach (Match match in matches)\n        {\n            Console.WriteLine($\"Match found: {match.Value}\");\n        }\n    }\n}<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>REPUBLIC OF&#8221;\ub97c \uc81c\uc678\ud558\uace0 &#8220;OF&#8221;\uac00 \ud3ec\ud568\ub41c \uc904\uc744 \ucc3e\uae30 \uc704\ud55c \uc815\uaddc \ud45c\ud604\uc2dd\uc744 \uc791\uc131\ud560 \ub54c, Lookahead\uc640 Lookbehind \uac19\uc740 \uc815\uaddc \ud45c\ud604\uc2dd\uc758 \uace0\uae09 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=9099\" title=\"Regex \ubb38\uc790 \uc81c\uc678 \ub85c\uc9c1\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-9099","post","type-post","status-publish","format-standard","hentry","category-devc"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9099"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9099\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}