{"id":9689,"date":"2025-02-12T11:42:25","date_gmt":"2025-02-12T02:42:25","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=9689"},"modified":"2025-02-12T11:43:27","modified_gmt":"2025-02-12T02:43:27","slug":"regex","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=9689","title":{"rendered":"Regex ?:"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">non-capturing<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \" >const text = \"abcabc\";\n\n\/\/ \ucea1\ucc98 \uadf8\ub8f9 \uc0ac\uc6a9: \uadf8\ub8f9\uc774 \ucea1\ucc98\ub418\uc5b4 \ubc30\uc5f4\uc758 \ub450 \ubc88\uc9f8 \uc694\uc18c\ub85c \ubc18\ud658\ub429\ub2c8\ub2e4.\nconst regexCapturing = \/(abc)+\/;\nconst resultCapturing = text.match(regexCapturing);\nconsole.log(resultCapturing);\n\/\/ \ucd9c\ub825 \uc608\uc2dc: [ 'abcabc', 'abc', index: 0, input: 'abcabc', groups: undefined ]\n\n\/\/ Non-capturing \uadf8\ub8f9 \uc0ac\uc6a9: \uadf8\ub8f9\uc774 \ucea1\ucc98\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\nconst regexNonCapturing = \/(?:abc)+\/;\nconst resultNonCapturing = text.match(regexNonCapturing);\nconsole.log(resultNonCapturing);\n\/\/ \ucd9c\ub825 \uc608\uc2dc: [ 'abcabc', index: 0, input: 'abcabc', groups: undefined ]<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\uc124\uba85<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ucea1\ucc98 \uadf8\ub8f9 <code>(abc)<\/code><\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>\/(abc)+\/<\/code>\uc740 <code>abc<\/code>\uac00 \ud55c \ubc88 \uc774\uc0c1 \ubc18\ubcf5\ub418\ub294 \ud328\ud134\uc744 \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\ucea1\ucc98 \uadf8\ub8f9\uc774 \uc0ac\uc6a9\ub418\ubbc0\ub85c, \uc804\uccb4 \ub9e4\uce6d \uacb0\uacfc \uc678\uc5d0 \ub9c8\uc9c0\ub9c9 \ubc18\ubcf5\uc5d0\uc11c \ucea1\ucc98\ub41c \uadf8\ub8f9(<code>\"abc\"<\/code>)\uc774 \uacb0\uacfc \ubc30\uc5f4\uc758 \ub450 \ubc88\uc9f8 \uc694\uc18c\ub85c \ud3ec\ud568\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Non-capturing \uadf8\ub8f9 <code>(?:abc)<\/code><\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>\/(?:abc)+\/<\/code>\uc740 \ub3d9\uc77c\ud558\uac8c <code>abc<\/code>\uac00 \ud55c \ubc88 \uc774\uc0c1 \ubc18\ubcf5\ub418\ub294 \ud328\ud134\uc744 \ucc3e\uc9c0\ub9cc, \uadf8\ub8f9 \ub0b4\ubd80\ub97c \ucea1\ucc98\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li>\uacb0\uacfc \ubc30\uc5f4\uc5d0\ub294 \uc804\uccb4 \ub9e4\uce6d \uacb0\uacfc\ub9cc \ud3ec\ud568\ub418\uba70, \ubcc4\ub3c4\uc758 \ucea1\ucc98 \uadf8\ub8f9 \uacb0\uacfc\ub294 \uc5c6\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ucc98\ub7fc <code>(?: ... )<\/code>\ub97c \uc0ac\uc6a9\ud558\uba74 \uadf8\ub8f9\ud654\ub294 \ud558\ub418 \ucea1\ucc98\ud558\uc9c0 \uc54a\uc544 \uacb0\uacfc\uc5d0 \ubd88\ud544\uc694\ud55c \uc694\uc18c\uac00 \ud3ec\ud568\ub418\uc9c0 \uc54a\ub3c4\ub85d \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>non-capturing \uc124\uba85 \uc774\ucc98\ub7fc (?: &#8230; )\ub97c \uc0ac\uc6a9\ud558\uba74 \uadf8\ub8f9\ud654\ub294 \ud558\ub418 \ucea1\ucc98\ud558\uc9c0 \uc54a\uc544 \uacb0\uacfc\uc5d0 \ubd88\ud544\uc694\ud55c \uc694\uc18c\uac00 \ud3ec\ud568\ub418\uc9c0 \uc54a\ub3c4\ub85d \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/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-9689","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\/9689","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=9689"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9689\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}