{"id":352,"date":"2026-05-17T06:46:14","date_gmt":"2026-05-16T22:46:14","guid":{"rendered":"https:\/\/junai.ai\/blog\/js-regex-20\/"},"modified":"2026-05-17T07:11:49","modified_gmt":"2026-05-16T23:11:49","slug":"js-regex-20","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/js-regex-20\/","title":{"rendered":"\uc815\uaddc\uc2dd \uae30\ucd08 \u2014 \uc774\uba54\uc77c\u00b7\uc804\ud654\ubc88\ud638 \uac80\uc99d (\uc911\uae09 20\ud3b8)"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 546 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n\/* js-textbook \u2014 PostgreSQL \uad50\uc7ac \ub3d9\uc77c \ud314\ub808\ud2b8 *\/\n:root {\n  --color-primary: #336791;\n  --color-accent: #60a5fa;\n  --color-bg: #fafafa;\n  --color-bg-card: #ffffff;\n  --color-text: #1e293b;\n  --color-text-muted: #64748b;\n  --hero-start: #0f172a;\n  --hero-end: #336791;\n  --font-body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;\n  --size-body: 17px;\n  --line-height: 1.75;\n}\n* { box-sizing: border-box; }\n.container { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; }\n.hero { background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); color: #fff; padding: 72px 22px 56px; text-align: center; }\n.hero .badge { display: inline-block; background: rgba(96,165,250,0.18); color: var(--color-accent); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 18px; }\n.hero h1 { margin: 0 0 18px; font-size: 36px; line-height: 1.3; letter-spacing: -0.3px; }\n.hero p.sub { margin: 0 auto; max-width: 580px; font-size: 17px; color: #bfdbfe; }\n.hero img { width: 100%; max-width: 720px; height: auto; margin: 36px auto 0; display: block; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }\n.meta { display: flex; gap: 14px; justify-content: center; margin-top: 20px; font-size: 13px; color: #93c5fd; flex-wrap: wrap; }\n.meta span::before { content: \"\u00b7\"; margin-right: 14px; color: #1e3a8a; }\n.meta span:first-child::before { content: \"\"; margin: 0; }\narticle { background: var(--color-bg-card); margin-top: -36px; padding: 44px 28px; border-radius: 14px; box-shadow: 0 2px 18px rgba(0,0,0,0.06); }\narticle p { margin: 0 0 18px; }\nh2 { font-size: 28px; line-height: 1.35; letter-spacing: -0.3px; margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); }\nh2:first-of-type { margin-top: 8px; }\nh3 { font-size: 21px; line-height: 1.4; margin: 30px 0 12px; color: var(--color-primary); }\ncode { background: #f1f5f9; color: #0f172a; padding: 2px 6px; border-radius: 4px; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.92em; }\npre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; margin: 18px 0; }\npre code { background: transparent; color: inherit; padding: 0; }\nul, ol { margin: 0 0 18px; padding-left: 24px; }\nli { margin-bottom: 8px; }\nstrong { color: #0f172a; }\n.databox { background: #eff6ff; border-left: 4px solid var(--color-primary); padding: 18px 20px; border-radius: 6px; margin: 22px 0; }\n.databox p { margin: 0 0 8px; }\n.databox p:last-child { margin: 0; }\n.databox strong { color: var(--color-primary); }\n.warnbox { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-left: 4px solid #d97706; padding: 18px 20px; border-radius: 6px; margin: 22px 0; }\n.warnbox strong { color: #92400e; }\n.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; }\ntable { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--color-bg-card); }\nth, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; }\nth { background: #f1f5f9; font-weight: 700; color: #0f172a; }\ntd:first-child, th:first-child { font-weight: 700; }\n.cta { background: linear-gradient(135deg, #336791 0%, #60a5fa 100%); color: #fff; padding: 30px 24px; border-radius: 12px; margin-top: 44px; text-align: center; }\n.cta h3 { color: #fff; margin: 0 0 10px; }\n.cta p { margin: 0; color: #dbeafe; }\n.series-nav { background: #eff6ff; padding: 18px 22px; border-radius: 10px; margin-top: 24px; font-size: 14.5px; color: var(--color-text-muted); }\n.series-nav strong { color: var(--color-primary); }\n@media (max-width: 480px) {\n  .hero { padding: 52px 18px 44px; }\n  .hero h1 { font-size: 26px; }\n  .hero p.sub { font-size: 15px; }\n  article { padding: 28px 18px; border-radius: 10px; }\n  h2 { font-size: 22px; }\n  h3 { font-size: 18px; }\npre { font-size: 13px; padding: 14px 16px; }\n}\n@media (max-width: 560px) {\n  .tablewrap table, .tablewrap thead, .tablewrap tbody, .tablewrap tr, .tablewrap th, .tablewrap td { display: block; width: auto; }\n  .tablewrap thead { display: none; }\n  .tablewrap tr { margin: 0 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }\n  .tablewrap td { border: none; border-bottom: 1px solid #f1f5f9; padding: 9px 14px; }\n  .tablewrap td:first-child { background: #eff6ff; font-weight: 800; font-size: 15.5px; }\n  .tablewrap td:last-child { border-bottom: none; }\n  .tablewrap td[data-label]::before { content: attr(data-label) \" \u2014 \"; font-weight: 700; color: var(--color-primary); }\n}\n<\/style>\n<header class=\"hero\">\n  <span class=\"badge\">\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \uad50\uc7ac \u00b7 20\ud3b8 \/ 26\ud3b8<\/span>\n  <h1>\uc815\uaddc\uc2dd \uae30\ucd08 \u2014 \uc774\uba54\uc77c\u00b7\uc804\ud654\ubc88\ud638 \uac80\uc99d<\/h1>\n  <p class=\"sub\">\uba54\ud0c0 \ubb38\uc790\u00b7\ud50c\ub798\uadf8\u00b7\uadf8\ub8f9\u00b7\uc790\uc8fc \uc4f0\ub294 \ud328\ud134 \ud55c \ubc88\uc5d0.<\/p>\n  <div class=\"meta\"><span>\uc911\uae09 \ub9c8\uc9c0\ub9c9<\/span><span>\uc77d\ub294 \uc2dc\uac04 7\ubd84<\/span><span>2026-05-17<\/span><\/div>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-191.jpg\" alt=\"\uc815\uaddc\uc2dd \ud328\ud134\uc774 \ud14d\uc2a4\ud2b8\ub97c \ub9e4\uce58\ud558\ub294 \ub3c4\uc2dd\uacfc \uadf8\ub8f9 \ucea1\ucc98\uc758 \ud750\ub984\">\n<\/header>\n\n<div class=\"container\">\n<article>\n\n<p>\uc815\uaddc\uc2dd(regex) \uc740 \ud55c \ubc88 \uc775\ud788\uba74 \ud3c9\uc0dd \uc4f0\ub294 \ub3c4\uad6c \u2014 \ud14d\uc2a4\ud2b8\uc5d0\uc11c \ud328\ud134\uc744 \ucc3e\uace0\u00b7\ucd94\ucd9c\ud558\uace0\u00b7\ubc14\uafc9\ub2c8\ub2e4. 11\ud3b8\uc758 \ud55c \uc785 \ub9db\ubcf8 \ud6c4, 20\ud3b8\uc5d0\uc11c \ubcf8\uaca9 \uae30\ucd08\ub97c \uc815\ub9ac. \uba54\ud0c0 \ubb38\uc790\u00b7\ud50c\ub798\uadf8\u00b7\uadf8\ub8f9\uacfc \uc790\uc8fc \uc4f0\ub294 \ud328\ud134\ub4e4. \uc911\uae09 \ud30c\ud2b8\uc758 \ub9c8\uc9c0\ub9c9\uc785\ub2c8\ub2e4.<\/p>\n\n<h2>\uc815\uaddc\uc2dd \ub9cc\ub4e4\uae30 \u2014 \ub450 \uac00\uc9c0 \ubc29\ubc95<\/h2>\n\n<pre><code>\/\/ \ub9ac\ud130\ub7f4 (\uac00\uc7a5 \ud754\ud568)\nconst re1 = \/hello\/;\n\n\/\/ RegExp \uc0dd\uc131\uc790 (\ub3d9\uc801 \ud328\ud134)\nconst word = \"hello\";\nconst re2 = new RegExp(word);\nconst re3 = new RegExp(`\\\\d{${digitCount}}`);   \/\/ \ub3d9\uc801 \uac12 \ub07c\uc6b8 \ub54c<\/code><\/pre>\n\n<h2>\uc8fc\uc694 \uba54\uc11c\ub4dc \u2014 \uc0ac\uc6a9 \ube48\ub3c4\uc21c<\/h2>\n\n<pre><code>const text = \"\uc804\ud654: 010-1234-5678\";\nconst re = \/\\d{3}-\\d{4}-\\d{4}\/;\n\nre.test(text);          \/\/ true   \u2014 \ub9e4\uce58 \uc5ec\ubd80 boolean\ntext.match(re);         \/\/ [\"010-1234-5678\"] \u2014 \uccab \ub9e4\uce58 (g \uc5c6\uc73c\uba74)\ntext.matchAll(\/\\d+\/g);  \/\/ \uc774\ud130\ub808\uc774\ud130 \u2014 \ubaa8\ub4e0 \ub9e4\uce58 (\uadf8\ub8f9 \ud3ec\ud568)\ntext.replace(re, \"[\uc804\ud654]\");   \/\/ \"\uc804\ud654: [\uc804\ud654]\"\ntext.split(\/\\s+\/);            \/\/ [\"\uc804\ud654:\", \"010-1234-5678\"]\ntext.search(re);              \/\/ 0 \ub610\ub294 -1 (\uc704\uce58)<\/code><\/pre>\n\n<h2>\ud50c\ub798\uadf8 5\uc885<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n  <thead>\n    <tr><th>\ud50c\ub798\uadf8<\/th><th>\uc758\ubbf8<\/th><\/tr>\n  <\/thead>\n  <tbody>\n    <tr><td data-label=\"\">g<\/td><td data-label=\"\">global \u2014 \ubaa8\ub4e0 \ub9e4\uce58 (\ud55c \ubc88\uc774 \uc544\ub2c8\ub77c)<\/td><\/tr>\n    <tr><td data-label=\"\">i<\/td><td data-label=\"\">ignore case \u2014 \ub300\uc18c\ubb38\uc790 \ubb34\uc2dc<\/td><\/tr>\n    <tr><td data-label=\"\">m<\/td><td data-label=\"\">multiline \u2014 ^$ \uac00 \uc904 \ub2e8\uc704<\/td><\/tr>\n    <tr><td data-label=\"\">s<\/td><td data-label=\"\">dotAll \u2014 . \uc774 \uc904\ubc14\uafc8\ub3c4 \ub9e4\uce58<\/td><\/tr>\n    <tr><td data-label=\"\">u<\/td><td data-label=\"\">unicode \u2014 \uc774\ubaa8\uc9c0\u00b7\ucf54\ub4dc\ud3ec\uc778\ud2b8 \uc548\uc804<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n<pre><code>\"Hello hello HELLO\".match(\/hello\/gi);\n\/\/ [\"Hello\", \"hello\", \"HELLO\"]<\/code><\/pre>\n\n<h2>\uba54\ud0c0 \ubb38\uc790 \u2014 \uc758\ubbf8 \uc788\ub294 \uae30\ud638<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n  <thead>\n    <tr><th>\ud328\ud134<\/th><th>\ub9e4\uce58<\/th><\/tr>\n  <\/thead>\n  <tbody>\n    <tr><td data-label=\"\">.<\/td><td data-label=\"\">\uc784\uc758\uc758 \ud55c \uae00\uc790 (\uc904\ubc14\uafc8 \uc81c\uc678)<\/td><\/tr>\n    <tr><td data-label=\"\">\\d<\/td><td data-label=\"\">\uc22b\uc790 [0-9]<\/td><\/tr>\n    <tr><td data-label=\"\">\\D<\/td><td data-label=\"\">\uc22b\uc790 \uc544\ub2d8<\/td><\/tr>\n    <tr><td data-label=\"\">\\w<\/td><td data-label=\"\">\ub2e8\uc5b4 \ubb38\uc790 [A-Za-z0-9_]<\/td><\/tr>\n    <tr><td data-label=\"\">\\s<\/td><td data-label=\"\">\uacf5\ubc31 (\uc2a4\ud398\uc774\uc2a4\u00b7\ud0ed\u00b7\uc904\ubc14\uafc8)<\/td><\/tr>\n    <tr><td data-label=\"\">\\b<\/td><td data-label=\"\">\ub2e8\uc5b4 \uacbd\uacc4<\/td><\/tr>\n    <tr><td data-label=\"\">^ $<\/td><td data-label=\"\">\uc904 \uc2dc\uc791 \/ \ub05d<\/td><\/tr>\n    <tr><td data-label=\"\">[abc]<\/td><td data-label=\"\">a\u00b7b\u00b7c \uc911 \ud558\ub098<\/td><\/tr>\n    <tr><td data-label=\"\">[^abc]<\/td><td data-label=\"\">a\u00b7b\u00b7c \uac00 \uc544\ub2cc \uac83<\/td><\/tr>\n    <tr><td data-label=\"\">[a-z]<\/td><td data-label=\"\">\ubc94\uc704<\/td><\/tr>\n    <tr><td data-label=\"\">a|b<\/td><td data-label=\"\">a \ub610\ub294 b<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n<h2>\uc218\ub7c9\uc790 \u2014 \uba87 \ubc88 \ubc18\ubcf5\ud558\ub098<\/h2>\n\n<div class=\"tablewrap\">\n<table>\n  <thead>\n    <tr><th>\ud328\ud134<\/th><th>\uc758\ubbf8<\/th><\/tr>\n  <\/thead>\n  <tbody>\n    <tr><td data-label=\"\">?<\/td><td data-label=\"\">0 \ub610\ub294 1\ubc88 (\uc635\uc158)<\/td><\/tr>\n    <tr><td data-label=\"\">*<\/td><td data-label=\"\">0\ubc88 \uc774\uc0c1<\/td><\/tr>\n    <tr><td data-label=\"\">+<\/td><td data-label=\"\">1\ubc88 \uc774\uc0c1<\/td><\/tr>\n    <tr><td data-label=\"\">{n}<\/td><td data-label=\"\">\uc815\ud655\ud788 n\ubc88<\/td><\/tr>\n    <tr><td data-label=\"\">{n,}<\/td><td data-label=\"\">n\ubc88 \uc774\uc0c1<\/td><\/tr>\n    <tr><td data-label=\"\">{n,m}<\/td><td data-label=\"\">n~m\ubc88<\/td><\/tr>\n    <tr><td data-label=\"\">+?<\/td><td data-label=\"\">lazy \u2014 \uac00\uc7a5 \uc801\uac8c \ub9e4\uce58 (\uae30\ubcf8\uc740 greedy)<\/td><\/tr>\n  <\/tbody>\n<\/table>\n<\/div>\n\n<h2>\uadf8\ub8f9\uacfc \ucea1\ucc98 \u2014 ()<\/h2>\n\n<pre><code>\/\/ \uc704\uce58 \uae30\ubc18 \uadf8\ub8f9\nconst m = \"2026-05-17\".match(\/^(\\d{4})-(\\d{2})-(\\d{2})$\/);\n\/\/ m[0]=\"2026-05-17\", m[1]=\"2026\", m[2]=\"05\", m[3]=\"17\"\n\n\/\/ \uc774\ub984 \uc788\ub294 \uadf8\ub8f9 (?&lt;name&gt;...)\nconst m2 = \"2026-05-17\".match(\/^(?&lt;year&gt;\\d{4})-(?&lt;month&gt;\\d{2})-(?&lt;day&gt;\\d{2})$\/);\nm2.groups.year;     \/\/ \"2026\"\nm2.groups.month;    \/\/ \"05\"\nm2.groups.day;      \/\/ \"17\"\n\n\/\/ \ube44\ucea1\ucc98 \uadf8\ub8f9 (?:...)\n\"hello world\".replace(\/(?:hello|hi) (\\w+)\/, \"\uc548\ub155 $1\");\n\/\/ \"\uc548\ub155 world\"   \u2190 \uccab \uadf8\ub8f9\uc740 \ucea1\ucc98 \uc548 \ud568\n\n\/\/ \uc5ed\ucc38\uc870 \\1\n\"hello hello\".match(\/(\\w+) \\1\/);   \/\/ \uac19\uc740 \ub2e8\uc5b4 \ubc18\ubcf5<\/code><\/pre>\n\n<h2>\uc790\uc8fc \uc4f0\ub294 \ud328\ud134 7\uac00\uc9c0<\/h2>\n\n<pre><code>\/\/ 1. \uc774\uba54\uc77c (\ub300\ub7b5) \u2014 \uc2e4\uc81c RFC 5322 \ub294 \ub9e4\uc6b0 \ubcf5\uc7a1, \ubcf4\ud1b5 \uc774 \uc815\ub3c4\uba74 \ucda9\ubd84\nconst emailRe = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\n\n\/\/ 2. \ud55c\uad6d \uc804\ud654\ubc88\ud638 (010-1234-5678 \ub610\ub294 01012345678)\nconst phoneRe = \/^01[0-9]-?\\d{3,4}-?\\d{4}$\/;\n\n\/\/ 3. URL\nconst urlRe = \/^https?:\\\/\\\/[^\\s]+$\/;\n\n\/\/ 4. \ud55c\uad6d\uc5b4\ub9cc\nconst koreanRe = \/^[\uac00-\ud7a3]+$\/;\n\n\/\/ 5. \uc601\uc22b\uc790 + _ - \ub9cc (slug)\nconst slugRe = \/^[a-z0-9_-]+$\/;\n\n\/\/ 6. \uce74\ub4dc \ubc88\ud638 \ubd84\ub9ac (1234567812345678 \u2192 1234 5678 1234 5678)\n\"1234567812345678\".replace(\/(\\d{4})(?=\\d)\/g, \"$1 \");\n\n\/\/ 7. \uc88b\uc740 \ube44\ubc00\ubc88\ud638 (\ub300\ubb38\uc790\u00b7\uc18c\ubb38\uc790\u00b7\uc22b\uc790 \uac01 1\uac1c \uc774\uc0c1, 8\uc790+)\nconst pwRe = \/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).{8,}$\/;<\/code><\/pre>\n\n<h2>lookahead \u00b7 lookbehind \u2014 \uc704\uce58 \uae30\ubc18 \ub9e4\uce6d<\/h2>\n\n<pre><code>\/\/ (?=...) \u2014 \ub4a4\ub530\ub77c\uc57c \ud568 (\uc18c\ube44 \uc548 \ud568)\n\"abc123\".match(\/[a-z]+(?=\\d)\/);    \/\/ \"abc\" \u2014 \uc22b\uc790 \uc55e\uc758 \uae00\uc790\n\n\/\/ (?!...) \u2014 \ub4a4\ub530\ub974\uba74 \uc548 \ub428\n\"abc def\".match(\/abc(?! def)\/);    \/\/ null\n\n\/\/ (?&lt;=...) \u2014 \uc55e\uc5d0 \uc788\uc5b4\uc57c \ud568 (\uc18c\ube44 \uc548 \ud568)\n\"$100\".match(\/(?&lt;=\\$)\\d+\/);        \/\/ \"100\"\n\n\/\/ (?&lt;!...) \u2014 \uc55e\uc5d0 \uc788\uc73c\uba74 \uc548 \ub428<\/code><\/pre>\n\n<h2>replace + \ud568\uc218 \u2014 \uac15\ub825\ud55c \ubcc0\ud658<\/h2>\n\n<pre><code>\/\/ \ub9e4\uce58\ub9c8\ub2e4 \ud568\uc218 \ud638\ucd9c\n\"hello world\".replace(\/\\w+\/g, m =&gt; m.toUpperCase());\n\/\/ \"HELLO WORLD\"\n\n\/\/ \uadf8\ub8f9\uacfc \ud568\uaed8\n\"2026-05-17\".replace(\/(\\d{4})-(\\d{2})-(\\d{2})\/, (_, y, m, d) =&gt; `${y}\ub144 ${+m}\uc6d4 ${+d}\uc77c`);\n\/\/ \"2026\ub144 5\uc6d4 17\uc77c\"\n\n\/\/ \uc774\ub984 \uc788\ub294 \uadf8\ub8f9\n\"a:1, b:2\".replace(\/(?&lt;k&gt;\\w+):(?&lt;v&gt;\\d+)\/g, (...args) =&gt; {\n  const { k, v } = args.at(-1);   \/\/ \ub9c8\uc9c0\ub9c9 \uc778\uc790\uac00 groups\n  return `${k}=${v}`;\n});<\/code><\/pre>\n\n<h2>\uc548\ud2f0\ud328\ud134 \/ \uc8fc\uc758 5\uac00\uc9c0<\/h2>\n\n<div class=\"warnbox\">\n  <p><strong>1. \uc774\uba54\uc77c \uc815\uaddc\uc2dd\uc5d0 \ub108\ubb34 \uc815\ud655\ud788.<\/strong> RFC \uc644\uc804 \uc815\ud655\uc740 \ub108\ubb34 \ubcf5\uc7a1 \u2192 <code>\/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/<\/code> \uc815\ub3c4 + \uc2e4\uc81c\ub85c \uc778\uc99d \uba54\uc77c \ubcf4\ub0b4 \uac80\uc99d.<\/p>\n  <p><strong>2. HTML \ud30c\uc2f1.<\/strong> \uc815\uaddc\uc2dd\uc73c\ub85c HTML \ud30c\uc2f1 \uc808\ub300 \uae08\uc9c0. DOMParser \ub610\ub294 cheerio.<\/p>\n  <p><strong>3. \ubc31\ud2b8\ub798\ud0b9 \ud3ed\uc8fc(ReDoS).<\/strong> <code>(a+)+<\/code> \uac19\uc740 \uc911\ucca9 \uc218\ub7c9\uc790\uc5d0 \uae34 \uc785\ub825 \u2192 \uc601\uac81\uc758 \uc2dc\uac04. \uc0ac\uc6a9\uc790 \uc785\ub825 \ud328\ud134 \ub9cc\ub4e4 \ub54c \uc8fc\uc758.<\/p>\n  <p><strong>4. g \ud50c\ub798\uadf8 + test \ud568\uc815.<\/strong> <code>regex.test()<\/code> \uac00 g \ud50c\ub798\uadf8\uba74 lastIndex \uac00 \uc720\uc9c0\ub428 \u2192 \uac19\uc740 regex \uc778\uc2a4\ud134\uc2a4 \uc7ac\uc0ac\uc6a9 \uc2dc \ub2e4\uc74c \ud638\ucd9c\uc774 \ub2e4\ub978 \uc704\uce58\ubd80\ud130. \ub9e4\ubc88 \uc0c8\ub85c \ub9cc\ub4e4\uac70\ub098 lastIndex \ub9ac\uc14b.<\/p>\n  <p><strong>5. \uac00\ub3c5\uc131.<\/strong> 5\uc904\uc9dc\ub9ac \uc815\uaddc\uc2dd\uc740 6\uac1c\uc6d4 \ub4a4 \uc790\uc2e0\ub3c4 \ubabb \uc77d\uc74c. \uc8fc\uc11d \ubaa8\ub4dc \uc5c6\ub294 JS \uc5d0\uc11c\ub294 \ubcc0\uc218\ub85c \ubd84\ud574\ud558\uac70\ub098 \ub77c\uc774\ube0c\ub7ec\ub9ac(date-fns\u00b7zod) \uc0ac\uc6a9.<\/p>\n<\/div>\n\n<div class=\"cta\">\n  <h3>21\ud3b8 \u2014 \ud074\ub85c\uc800 \uae4a\uc774 (\uace0\uae09 \uc2dc\uc791)<\/h3>\n  <p>\ud568\uc218\uac00 \ud568\uc218\ub97c \uae30\uc5b5\ud558\ub294 \uba54\ucee4\ub2c8\uc998. \uce74\uc6b4\ud130 \ud328\ud134\ubd80\ud130 \uba54\ubaa8\ub9ac \ub204\uc218\uae4c\uc9c0.<\/p>\n<\/div>\n\n<div class=\"series-nav\">\n  <strong>\ud83d\udcda \uc27d\uac8c \ubc30\uc6b0\ub294 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \uad50\uc7ac<\/strong><br>\n  \uc774\uc804: 19\ud3b8 \ubaa8\ub4c8 \u00b7 \ud604\uc7ac: <strong>20\ud3b8 (\uc911\uae09 \ub9c8\uc9c0\ub9c9)<\/strong> \u00b7 \ub2e4\uc74c \u2192 21\ud3b8 \ud074\ub85c\uc800 (\uace0\uae09 \uc2dc\uc791) \u00b7 \uc9c4\ud589: <strong>20\/26<\/strong>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc815\uaddc\uc2dd \uba54\ud0c0 \ubb38\uc790\u00b7\ud50c\ub798\uadf8\u00b7\uadf8\ub8f9\u00b7\uc790\uc8fc \uc4f0\ub294 \ud328\ud134. 26\ud3b8 \uad50\uc7ac 20\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":546,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-basic"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":3,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/352\/revisions\/572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/546"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}