CINXE.COM

정규 표현식 - 위키백과, 우리 모두의 백과사전

<!doctype html> <html class="client-nojs mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0" lang="ko" dir="ltr"> <head> <base href="https://ko.m.wikipedia.org/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D"> <meta charset="UTF-8"> <title>정규 표현식 - 위키백과, 우리 모두의 백과사전</title> <script>(function(){var className="client-js mf-expand-sections-clientpref-0 mf-font-size-clientpref-small mw-mf-amc-clientpref-0";var cookie=document.cookie.match(/(?:^|; )kowikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"ko","wgMonthNames":["","1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],"wgRequestId":"8a7350cd-8409-4419-8aff-8dbbceca6f90","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"정규_표현식","wgTitle":"정규 표현식","wgCurRevisionId":37443074,"wgRevisionId":37443074,"wgArticleId":74388,"wgIsArticle":true,"wgIsRedirect":false,"wgAction": "view","wgUserName":null,"wgUserGroups":["*"],"wgPageViewLanguage":"ko","wgPageContentLanguage":"ko","wgPageContentModel":"wikitext","wgRelevantPageName":"정규_표현식","wgRelevantArticleId":74388,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"ko","pageLanguageDir":"ltr","pageVariantFallbacks":"ko"},"wgMFMode":"stable","wgMFAmc":false,"wgMFAmcOutreachActive":false,"wgMFAmcOutreachUserEligible":false,"wgMFLazyLoadImages":true,"wgMFEditNoticesFeatureConflict":false,"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgMFIsSupportedEditRequest":true,"wgMFScriptPath":"","wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":40000,"wgRelatedArticlesCompat":[], "wgEditSubmitButtonLabelPublish":true,"wgSectionTranslationMissingLanguages":[{"lang":"ace","autonym":"Acèh","dir":"ltr"},{"lang":"ady","autonym":"адыгабзэ","dir":"ltr"},{"lang":"alt","autonym":"алтай тил","dir":"ltr"},{"lang":"am","autonym":"አማርኛ","dir":"ltr"},{"lang":"ami","autonym":"Pangcah","dir":"ltr"},{"lang":"an","autonym":"aragonés","dir":"ltr"},{"lang":"ang","autonym":"Ænglisc","dir":"ltr"},{"lang":"ann","autonym":"Obolo","dir":"ltr"},{"lang":"anp","autonym":"अंगिका","dir":"ltr"},{"lang":"ary","autonym":"الدارجة","dir":"rtl"},{"lang":"arz","autonym":"مصرى","dir":"rtl"},{"lang":"as","autonym":"অসমীয়া","dir":"ltr"},{"lang":"ast","autonym":"asturianu","dir":"ltr"},{"lang":"av","autonym":"авар","dir":"ltr"},{"lang":"avk","autonym":"Kotava","dir":"ltr"},{"lang":"awa","autonym":"अवधी","dir":"ltr"},{"lang":"ay","autonym":"Aymar aru","dir":"ltr"},{"lang":"azb","autonym":"تۆرکجه","dir":"rtl"},{"lang": "ba","autonym":"башҡортса","dir":"ltr"},{"lang":"ban","autonym":"Basa Bali","dir":"ltr"},{"lang":"bbc","autonym":"Batak Toba","dir":"ltr"},{"lang":"bcl","autonym":"Bikol Central","dir":"ltr"},{"lang":"bdr","autonym":"Bajau Sama","dir":"ltr"},{"lang":"be","autonym":"беларуская","dir":"ltr"},{"lang":"bew","autonym":"Betawi","dir":"ltr"},{"lang":"bho","autonym":"भोजपुरी","dir":"ltr"},{"lang":"bi","autonym":"Bislama","dir":"ltr"},{"lang":"bjn","autonym":"Banjar","dir":"ltr"},{"lang":"blk","autonym":"ပအိုဝ်ႏဘာႏသာႏ","dir":"ltr"},{"lang":"bm","autonym":"bamanankan","dir":"ltr"},{"lang":"bo","autonym":"བོད་ཡིག","dir":"ltr"},{"lang":"bpy","autonym":"বিষ্ণুপ্রিয়া মণিপুরী","dir":"ltr"},{"lang":"br","autonym":"brezhoneg","dir":"ltr"},{"lang":"bs","autonym":"bosanski","dir":"ltr"},{"lang":"btm","autonym":"Batak Mandailing","dir":"ltr"},{"lang":"bug","autonym":"Basa Ugi","dir":"ltr"},{ "lang":"cdo","autonym":"閩東語 / Mìng-dĕ̤ng-ngṳ̄","dir":"ltr"},{"lang":"ce","autonym":"нохчийн","dir":"ltr"},{"lang":"ceb","autonym":"Cebuano","dir":"ltr"},{"lang":"ch","autonym":"Chamoru","dir":"ltr"},{"lang":"chr","autonym":"ᏣᎳᎩ","dir":"ltr"},{"lang":"ckb","autonym":"کوردی","dir":"rtl"},{"lang":"co","autonym":"corsu","dir":"ltr"},{"lang":"cr","autonym":"Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ","dir":"ltr"},{"lang":"crh","autonym":"qırımtatarca","dir":"ltr"},{"lang":"cu","autonym":"словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ","dir":"ltr"},{"lang":"cy","autonym":"Cymraeg","dir":"ltr"},{"lang":"dag","autonym":"dagbanli","dir":"ltr"},{"lang":"dga","autonym":"Dagaare","dir":"ltr"},{"lang":"din","autonym":"Thuɔŋjäŋ","dir":"ltr"},{"lang":"diq","autonym":"Zazaki","dir":"ltr"},{"lang":"dsb","autonym":"dolnoserbski","dir":"ltr"},{"lang":"dtp","autonym":"Kadazandusun","dir":"ltr"},{"lang":"dv","autonym":"ދިވެހިބަސް","dir":"rtl"},{"lang":"dz", "autonym":"ཇོང་ཁ","dir":"ltr"},{"lang":"ee","autonym":"eʋegbe","dir":"ltr"},{"lang":"eml","autonym":"emiliàn e rumagnòl","dir":"ltr"},{"lang":"fat","autonym":"mfantse","dir":"ltr"},{"lang":"ff","autonym":"Fulfulde","dir":"ltr"},{"lang":"fj","autonym":"Na Vosa Vakaviti","dir":"ltr"},{"lang":"fo","autonym":"føroyskt","dir":"ltr"},{"lang":"fon","autonym":"fɔ̀ngbè","dir":"ltr"},{"lang":"frp","autonym":"arpetan","dir":"ltr"},{"lang":"frr","autonym":"Nordfriisk","dir":"ltr"},{"lang":"fur","autonym":"furlan","dir":"ltr"},{"lang":"fy","autonym":"Frysk","dir":"ltr"},{"lang":"gag","autonym":"Gagauz","dir":"ltr"},{"lang":"gan","autonym":"贛語","dir":"ltr"},{"lang":"gcr","autonym":"kriyòl gwiyannen","dir":"ltr"},{"lang":"glk","autonym":"گیلکی","dir":"rtl"},{"lang":"gn","autonym":"Avañe'ẽ","dir":"ltr"},{"lang":"gom","autonym":"गोंयची कोंकणी / Gõychi Konknni","dir":"ltr"},{"lang":"gor","autonym":"Bahasa Hulontalo","dir":"ltr"},{"lang":"gpe", "autonym":"Ghanaian Pidgin","dir":"ltr"},{"lang":"gu","autonym":"ગુજરાતી","dir":"ltr"},{"lang":"guc","autonym":"wayuunaiki","dir":"ltr"},{"lang":"gur","autonym":"farefare","dir":"ltr"},{"lang":"guw","autonym":"gungbe","dir":"ltr"},{"lang":"gv","autonym":"Gaelg","dir":"ltr"},{"lang":"ha","autonym":"Hausa","dir":"ltr"},{"lang":"hak","autonym":"客家語 / Hak-kâ-ngî","dir":"ltr"},{"lang":"haw","autonym":"Hawaiʻi","dir":"ltr"},{"lang":"hif","autonym":"Fiji Hindi","dir":"ltr"},{"lang":"hsb","autonym":"hornjoserbsce","dir":"ltr"},{"lang":"ht","autonym":"Kreyòl ayisyen","dir":"ltr"},{"lang":"hyw","autonym":"Արեւմտահայերէն","dir":"ltr"},{"lang":"ia","autonym":"interlingua","dir":"ltr"},{"lang":"iba","autonym":"Jaku Iban","dir":"ltr"},{"lang":"ie","autonym":"Interlingue","dir":"ltr"},{"lang":"ig","autonym":"Igbo","dir":"ltr"},{"lang":"igl","autonym":"Igala","dir":"ltr"},{"lang":"ilo","autonym":"Ilokano","dir":"ltr"},{"lang":"io","autonym":"Ido","dir":"ltr"},{ "lang":"iu","autonym":"ᐃᓄᒃᑎᑐᑦ / inuktitut","dir":"ltr"},{"lang":"jam","autonym":"Patois","dir":"ltr"},{"lang":"jv","autonym":"Jawa","dir":"ltr"},{"lang":"kaa","autonym":"Qaraqalpaqsha","dir":"ltr"},{"lang":"kab","autonym":"Taqbaylit","dir":"ltr"},{"lang":"kbd","autonym":"адыгэбзэ","dir":"ltr"},{"lang":"kbp","autonym":"Kabɩyɛ","dir":"ltr"},{"lang":"kcg","autonym":"Tyap","dir":"ltr"},{"lang":"kg","autonym":"Kongo","dir":"ltr"},{"lang":"kge","autonym":"Kumoring","dir":"ltr"},{"lang":"ki","autonym":"Gĩkũyũ","dir":"ltr"},{"lang":"kk","autonym":"қазақша","dir":"ltr"},{"lang":"kl","autonym":"kalaallisut","dir":"ltr"},{"lang":"km","autonym":"ភាសាខ្មែរ","dir":"ltr"},{"lang":"kn","autonym":"ಕನ್ನಡ","dir":"ltr"},{"lang":"koi","autonym":"перем коми","dir":"ltr"},{"lang":"krc","autonym":"къарачай-малкъар","dir":"ltr"},{"lang":"ks","autonym":"कॉशुर / کٲشُر","dir":"rtl"},{"lang":"ku","autonym":"kurdî", "dir":"ltr"},{"lang":"kus","autonym":"Kʋsaal","dir":"ltr"},{"lang":"kv","autonym":"коми","dir":"ltr"},{"lang":"kw","autonym":"kernowek","dir":"ltr"},{"lang":"lad","autonym":"Ladino","dir":"ltr"},{"lang":"lb","autonym":"Lëtzebuergesch","dir":"ltr"},{"lang":"lez","autonym":"лезги","dir":"ltr"},{"lang":"lg","autonym":"Luganda","dir":"ltr"},{"lang":"li","autonym":"Limburgs","dir":"ltr"},{"lang":"lij","autonym":"Ligure","dir":"ltr"},{"lang":"lld","autonym":"Ladin","dir":"ltr"},{"lang":"lmo","autonym":"lombard","dir":"ltr"},{"lang":"ln","autonym":"lingála","dir":"ltr"},{"lang":"lo","autonym":"ລາວ","dir":"ltr"},{"lang":"lt","autonym":"lietuvių","dir":"ltr"},{"lang":"ltg","autonym":"latgaļu","dir":"ltr"},{"lang":"mad","autonym":"Madhurâ","dir":"ltr"},{"lang":"mai","autonym":"मैथिली","dir":"ltr"},{"lang":"map-bms","autonym":"Basa Banyumasan","dir":"ltr"},{"lang":"mdf","autonym":"мокшень","dir":"ltr"},{"lang":"mg","autonym":"Malagasy","dir":"ltr"},{"lang": "mhr","autonym":"олык марий","dir":"ltr"},{"lang":"mi","autonym":"Māori","dir":"ltr"},{"lang":"min","autonym":"Minangkabau","dir":"ltr"},{"lang":"mn","autonym":"монгол","dir":"ltr"},{"lang":"mni","autonym":"ꯃꯤꯇꯩ ꯂꯣꯟ","dir":"ltr"},{"lang":"mnw","autonym":"ဘာသာမန်","dir":"ltr"},{"lang":"mos","autonym":"moore","dir":"ltr"},{"lang":"mr","autonym":"मराठी","dir":"ltr"},{"lang":"mrj","autonym":"кырык мары","dir":"ltr"},{"lang":"ms","autonym":"Bahasa Melayu","dir":"ltr"},{"lang":"mt","autonym":"Malti","dir":"ltr"},{"lang":"my","autonym":"မြန်မာဘာသာ","dir":"ltr"},{"lang":"myv","autonym":"эрзянь","dir":"ltr"},{"lang":"mzn","autonym":"مازِرونی","dir":"rtl"},{"lang":"nah","autonym":"Nāhuatl","dir":"ltr"},{"lang":"nan","autonym":"閩南語 / Bân-lâm-gú","dir":"ltr"},{"lang":"nap","autonym":"Napulitano","dir":"ltr"},{"lang":"nb","autonym":"norsk bokmål","dir":"ltr"},{"lang":"nds","autonym": "Plattdüütsch","dir":"ltr"},{"lang":"nds-nl","autonym":"Nedersaksies","dir":"ltr"},{"lang":"ne","autonym":"नेपाली","dir":"ltr"},{"lang":"new","autonym":"नेपाल भाषा","dir":"ltr"},{"lang":"nia","autonym":"Li Niha","dir":"ltr"},{"lang":"nn","autonym":"norsk nynorsk","dir":"ltr"},{"lang":"nqo","autonym":"ߒߞߏ","dir":"rtl"},{"lang":"nr","autonym":"isiNdebele seSewula","dir":"ltr"},{"lang":"nso","autonym":"Sesotho sa Leboa","dir":"ltr"},{"lang":"ny","autonym":"Chi-Chewa","dir":"ltr"},{"lang":"oc","autonym":"occitan","dir":"ltr"},{"lang":"om","autonym":"Oromoo","dir":"ltr"},{"lang":"or","autonym":"ଓଡ଼ିଆ","dir":"ltr"},{"lang":"os","autonym":"ирон","dir":"ltr"},{"lang":"pa","autonym":"ਪੰਜਾਬੀ","dir":"ltr"},{"lang":"pag","autonym":"Pangasinan","dir":"ltr"},{"lang":"pam","autonym":"Kapampangan","dir":"ltr"},{"lang":"pap","autonym":"Papiamentu","dir":"ltr"},{"lang":"pcd","autonym":"Picard","dir":"ltr"},{"lang":"pcm","autonym":"Naijá", "dir":"ltr"},{"lang":"pdc","autonym":"Deitsch","dir":"ltr"},{"lang":"pms","autonym":"Piemontèis","dir":"ltr"},{"lang":"ps","autonym":"پښتو","dir":"rtl"},{"lang":"pwn","autonym":"pinayuanan","dir":"ltr"},{"lang":"qu","autonym":"Runa Simi","dir":"ltr"},{"lang":"rm","autonym":"rumantsch","dir":"ltr"},{"lang":"rn","autonym":"ikirundi","dir":"ltr"},{"lang":"rsk","autonym":"руски","dir":"ltr"},{"lang":"rue","autonym":"русиньскый","dir":"ltr"},{"lang":"rup","autonym":"armãneashti","dir":"ltr"},{"lang":"rw","autonym":"Ikinyarwanda","dir":"ltr"},{"lang":"sa","autonym":"संस्कृतम्","dir":"ltr"},{"lang":"sah","autonym":"саха тыла","dir":"ltr"},{"lang":"sat","autonym":"ᱥᱟᱱᱛᱟᱲᱤ","dir":"ltr"},{"lang":"sc","autonym":"sardu","dir":"ltr"},{"lang":"scn","autonym":"sicilianu","dir":"ltr"},{"lang":"sco","autonym":"Scots","dir":"ltr"},{"lang":"sd","autonym":"سنڌي","dir":"rtl"},{"lang":"se","autonym":"davvisámegiella","dir":"ltr"},{"lang":"sg" ,"autonym":"Sängö","dir":"ltr"},{"lang":"sgs","autonym":"žemaitėška","dir":"ltr"},{"lang":"sh","autonym":"srpskohrvatski / српскохрватски","dir":"ltr"},{"lang":"shi","autonym":"Taclḥit","dir":"ltr"},{"lang":"shn","autonym":"ၽႃႇသႃႇတႆး ","dir":"ltr"},{"lang":"si","autonym":"සිංහල","dir":"ltr"},{"lang":"skr","autonym":"سرائیکی","dir":"rtl"},{"lang":"sm","autonym":"Gagana Samoa","dir":"ltr"},{"lang":"smn","autonym":"anarâškielâ","dir":"ltr"},{"lang":"sn","autonym":"chiShona","dir":"ltr"},{"lang":"so","autonym":"Soomaaliga","dir":"ltr"},{"lang":"srn","autonym":"Sranantongo","dir":"ltr"},{"lang":"ss","autonym":"SiSwati","dir":"ltr"},{"lang":"st","autonym":"Sesotho","dir":"ltr"},{"lang":"stq","autonym":"Seeltersk","dir":"ltr"},{"lang":"su","autonym":"Sunda","dir":"ltr"},{"lang":"sw","autonym":"Kiswahili","dir":"ltr"},{"lang":"szl","autonym":"ślůnski","dir":"ltr"},{"lang":"tay","autonym":"Tayal","dir":"ltr"},{"lang":"tcy","autonym": "ತುಳು","dir":"ltr"},{"lang":"tdd","autonym":"ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ","dir":"ltr"},{"lang":"te","autonym":"తెలుగు","dir":"ltr"},{"lang":"tet","autonym":"tetun","dir":"ltr"},{"lang":"tg","autonym":"тоҷикӣ","dir":"ltr"},{"lang":"ti","autonym":"ትግርኛ","dir":"ltr"},{"lang":"tk","autonym":"Türkmençe","dir":"ltr"},{"lang":"tl","autonym":"Tagalog","dir":"ltr"},{"lang":"tly","autonym":"tolışi","dir":"ltr"},{"lang":"tn","autonym":"Setswana","dir":"ltr"},{"lang":"to","autonym":"lea faka-Tonga","dir":"ltr"},{"lang":"tpi","autonym":"Tok Pisin","dir":"ltr"},{"lang":"trv","autonym":"Seediq","dir":"ltr"},{"lang":"ts","autonym":"Xitsonga","dir":"ltr"},{"lang":"tt","autonym":"татарча / tatarça","dir":"ltr"},{"lang":"tum","autonym":"chiTumbuka","dir":"ltr"},{"lang":"tw","autonym":"Twi","dir":"ltr"},{"lang":"ty","autonym":"reo tahiti","dir":"ltr"},{"lang":"tyv","autonym":"тыва дыл","dir":"ltr"},{"lang":"udm","autonym":"удмурт","dir":"ltr" },{"lang":"uz","autonym":"oʻzbekcha / ўзбекча","dir":"ltr"},{"lang":"ve","autonym":"Tshivenda","dir":"ltr"},{"lang":"vec","autonym":"vèneto","dir":"ltr"},{"lang":"vep","autonym":"vepsän kel’","dir":"ltr"},{"lang":"vls","autonym":"West-Vlams","dir":"ltr"},{"lang":"vo","autonym":"Volapük","dir":"ltr"},{"lang":"vro","autonym":"võro","dir":"ltr"},{"lang":"war","autonym":"Winaray","dir":"ltr"},{"lang":"wo","autonym":"Wolof","dir":"ltr"},{"lang":"xal","autonym":"хальмг","dir":"ltr"},{"lang":"xh","autonym":"isiXhosa","dir":"ltr"},{"lang":"xmf","autonym":"მარგალური","dir":"ltr"},{"lang":"yi","autonym":"ייִדיש","dir":"rtl"},{"lang":"yo","autonym":"Yorùbá","dir":"ltr"},{"lang":"yue","autonym":"粵語","dir":"ltr"},{"lang":"za","autonym":"Vahcuengh","dir":"ltr"},{"lang":"zgh","autonym":"ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ","dir":"ltr"},{"lang":"zu","autonym":"isiZulu","dir":"ltr"}],"wgSectionTranslationTargetLanguages":["ace","ady","alt" ,"am","ami","an","ang","ann","anp","ar","ary","arz","as","ast","av","avk","awa","ay","az","azb","ba","ban","bar","bbc","bcl","bdr","be","bew","bg","bho","bi","bjn","blk","bm","bn","bo","bpy","br","bs","btm","bug","ca","cdo","ce","ceb","ch","chr","ckb","co","cr","crh","cs","cu","cy","da","dag","de","dga","din","diq","dsb","dtp","dv","dz","ee","el","eml","eo","es","et","eu","fa","fat","ff","fi","fj","fo","fon","fr","frp","frr","fur","fy","gag","gan","gcr","gl","glk","gn","gom","gor","gpe","gu","guc","gur","guw","gv","ha","hak","haw","he","hi","hif","hr","hsb","ht","hu","hy","hyw","ia","iba","ie","ig","igl","ilo","io","is","it","iu","ja","jam","jv","ka","kaa","kab","kbd","kbp","kcg","kg","kge","ki","kk","kl","km","kn","ko","koi","krc","ks","ku","kus","kv","kw","ky","lad","lb","lez","lg","li","lij","lld","lmo","ln","lo","lt","ltg","lv","mad","mai","map-bms","mdf","mg","mhr","mi","min","mk","ml","mn","mni","mnw","mos","mr","mrj","ms","mt","mwl","my","myv","mzn","nah","nan","nap","nb","nds", "nds-nl","ne","new","nia","nl","nn","nqo","nr","nso","ny","oc","om","or","os","pa","pag","pam","pap","pcd","pcm","pdc","pl","pms","pnb","ps","pt","pwn","qu","rm","rn","ro","rsk","rue","rup","rw","sa","sah","sat","sc","scn","sco","sd","se","sg","sgs","sh","shi","shn","si","sk","skr","sl","sm","smn","sn","so","sq","sr","srn","ss","st","stq","su","sv","sw","szl","ta","tay","tcy","tdd","te","tet","tg","th","ti","tk","tl","tly","tn","to","tpi","tr","trv","ts","tt","tum","tw","ty","tyv","udm","ur","uz","ve","vec","vep","vi","vls","vo","vro","wa","war","wo","wuu","xal","xh","xmf","yi","yo","yue","za","zgh","zh","zu"],"isLanguageSearcherCXEntrypointEnabled":true,"mintEntrypointLanguages":["ace","ast","azb","bcl","bjn","bh","crh","ff","fon","ig","is","ki","ks","lmo","min","sat","ss","tn","vec"],"wgWikibaseItemId":"Q185612","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"], "GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false,"wgMinervaPermissions":{"watchable":true,"watch":false},"wgMinervaFeatures":{"beta":false,"donate":true,"mobileOptionsLink":true,"categories":false,"pageIssues":true,"talkAtTop":false,"historyInPageActions":false,"overflowSubmenu":false,"tabsOnSpecials":true,"personalMenu":false,"mainMenuExpanded":false,"echo":true,"nightMode":false},"wgMinervaDownloadNamespaces":[0]};RLSTATE={"ext.gadget.SectionFont":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.cite.styles":"ready","skins.minerva.styles":"ready","skins.minerva.content.styles.images":"ready","mediawiki.hlist":"ready","skins.minerva.codex.styles":"ready","skins.minerva.icons":"ready","ext.wikimediamessages.styles":"ready", "mobile.init.styles":"ready","ext.relatedArticles.styles":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","ext.cite.ux-enhancements","mediawiki.page.media","site","mediawiki.page.ready","skins.minerva.scripts","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.directcommons","ext.gadget.edittools","ext.gadget.refToolbar","ext.gadget.siteNotice","ext.gadget.scrollUpButton","ext.gadget.strikethroughTOC","ext.gadget.switcher","ext.gadget.WikiMiniAtlas","ext.gadget.Calculator","ext.urlShortener.toolbar","ext.centralauth.centralautologin","ext.popups","mobile.init","ext.echo.centralauth","ext.relatedArticles.readMore.bootstrap","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.cx.eventlogging.campaigns","ext.cx.entrypoints.mffrequentlanguages","ext.cx.entrypoints.languagesearcher.init","mw.externalguidance.init","ext.checkUser.clientHints","ext.quicksurveys.init", "ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=ko&amp;modules=ext.cite.styles%7Cext.pygments%2CwikimediaBadges%7Cext.relatedArticles.styles%7Cext.wikimediamessages.styles%7Cmediawiki.hlist%7Cmobile.init.styles%7Cskins.minerva.codex.styles%7Cskins.minerva.content.styles.images%7Cskins.minerva.icons%2Cstyles%7Cwikibase.client.init&amp;only=styles&amp;skin=minerva"> <script async src="/w/load.php?lang=ko&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=minerva"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=ko&amp;modules=ext.gadget.SectionFont&amp;only=styles&amp;skin=minerva"> <link rel="stylesheet" href="/w/load.php?lang=ko&amp;modules=site.styles&amp;only=styles&amp;skin=minerva"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="theme-color" content="#eaecf0"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/2/23/The_river_effect_in_justified_text.jpg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="691"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/The_river_effect_in_justified_text.jpg/800px-The_river_effect_in_justified_text.jpg"> <meta property="og:image:width" content="800"> <meta property="og:image:height" content="461"> <meta property="og:image" content="https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/The_river_effect_in_justified_text.jpg/640px-The_river_effect_in_justified_text.jpg"> <meta property="og:image:width" content="640"> <meta property="og:image:height" content="369"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.25, maximum-scale=5.0"> <meta property="og:title" content="정규 표현식 - 위키백과, 우리 모두의 백과사전"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="manifest" href="/w/api.php?action=webapp-manifest"> <link rel="alternate" type="application/x-wiki" title="편집" href="/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="위키백과 (ko)"> <link rel="EditURI" type="application/rsd+xml" href="//ko.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://ko.wikipedia.org/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ko"> <link rel="dns-prefetch" href="//meta.wikimedia.org"> <link rel="dns-prefetch" href="//login.wikimedia.org"> <meta http-equiv="X-Translated-By" content="Google"> <meta http-equiv="X-Translated-To" content="en"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.HWThTSqfXy8.O/am=DAY/d=1/rs=AN8SPforCdnxlZDJUkR1p8RUr9HyDr68Rg/m=corsproxy" data-sourceurl="https://ko.m.wikipedia.org/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D"></script> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.HWThTSqfXy8.O/am=DAY/d=1/exm=corsproxy/ed=1/rs=AN8SPforCdnxlZDJUkR1p8RUr9HyDr68Rg/m=phishing_protection" data-phishing-protection-enabled="false" data-forms-warning-enabled="true" data-source-url="https://ko.m.wikipedia.org/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D"></script> <meta name="robots" content="none"> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-정규_표현식 rootpage-정규_표현식 stable issues-group-B skin-minerva action-view skin--responsive mw-mf-amc-disabled mw-mf"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.en_GB.HWThTSqfXy8.O/am=DAY/d=1/exm=corsproxy,phishing_protection/ed=1/rs=AN8SPforCdnxlZDJUkR1p8RUr9HyDr68Rg/m=navigationui" data-environment="prod" data-proxy-url="https://ko-m-wikipedia-org.translate.goog" data-proxy-full-url="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-source-url="https://ko.m.wikipedia.org/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D" data-source-language="auto" data-target-language="en" data-display-language="en-GB" data-detected-source-language="ko" data-is-source-untranslated="false" data-source-untranslated-url="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ko.m.wikipedia.org/wiki/%25EC%25A0%2595%25EA%25B7%259C_%25ED%2591%259C%25ED%2598%2584%25EC%258B%259D&amp;anno=2" data-client="tr"></script> <div id="mw-mf-viewport"> <div id="mw-mf-page-center"><a class="mw-mf-page-center__mask" href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#"></a> <header class="header-container header-chrome"> <div class="minerva-header"> <nav class="navigation-drawer toggle-list view-border-box"><input type="checkbox" id="main-menu-input" class="toggle-list__checkbox" role="button" aria-haspopup="true" aria-expanded="false" aria-labelledby="mw-mf-main-menu-button"> <label role="button" for="main-menu-input" id="mw-mf-main-menu-button" aria-hidden="true" data-event-name="ui.mainmenu" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet toggle-list__toggle"> <span class="minerva-icon minerva-icon--menu"></span> <span></span> </label> <div id="mw-mf-page-left" class="menu view-border-box"> <ul id="p-navigation" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--home" href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-mw="interface"> <span class="minerva-icon minerva-icon--home"></span> <span class="toggle-list-item__label">대문</span> </a></li> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--random" href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8A%B9%EC%88%98:%EC%9E%84%EC%9D%98%EB%AC%B8%EC%84%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-mw="interface"> <span class="minerva-icon minerva-icon--die"></span> <span class="toggle-list-item__label">임의의 문서로</span> </a></li> <li class="toggle-list-item skin-minerva-list-item-jsonly"><a class="toggle-list-item__anchor menu__item--nearby" href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8A%B9%EC%88%98:%EA%B7%BC%EC%B2%98?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-event-name="menu.nearby" data-mw="interface"> <span class="minerva-icon minerva-icon--mapPin"></span> <span class="toggle-list-item__label">근처</span> </a></li> </ul> <ul id="p-personal" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--login" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%ED%8A%B9%EC%88%98:%EB%A1%9C%EA%B7%B8%EC%9D%B8&amp;returnto=%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-event-name="menu.login" data-mw="interface"> <span class="minerva-icon minerva-icon--logIn"></span> <span class="toggle-list-item__label">로그인</span> </a></li> </ul> <ul id="pt-preferences" class="toggle-list__list"> <li class="toggle-list-item skin-minerva-list-item-jsonly"><a class="toggle-list-item__anchor menu__item--settings" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%ED%8A%B9%EC%88%98:%EB%AA%A8%EB%B0%94%EC%9D%BC%EC%84%A4%EC%A0%95&amp;returnto=%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-event-name="menu.settings" data-mw="interface"> <span class="minerva-icon minerva-icon--settings"></span> <span class="toggle-list-item__label">설정</span> </a></li> </ul> <ul id="p-donation" class="toggle-list__list"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--donate" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source%3Ddonate%26utm_medium%3Dsidebar%26utm_campaign%3DC13_ko.wikipedia.org%26uselang%3Dko%26wmf_key%3Dminerva" data-event-name="menu.donate" data-mw="interface"> <span class="minerva-icon minerva-icon--heart"></span> <span class="toggle-list-item__label">기부</span> </a></li> </ul> <ul class="hlist"> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--about" href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EC%86%8C%EA%B0%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-mw="interface"> <span class="toggle-list-item__label">위키백과 소개</span> </a></li> <li class="toggle-list-item "><a class="toggle-list-item__anchor menu__item--disclaimers" href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%A9%B4%EC%B1%85_%EC%A1%B0%ED%95%AD?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-mw="interface"> <span class="toggle-list-item__label">면책 조항</span> </a></li> </ul> </div><label class="main-menu-mask" for="main-menu-input"></label> </nav> <div class="branding-box"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB"> <span><img src="/static/images/mobile/copyright/wikipedia-wordmark-ko.svg" alt="위키백과" width="120" height="28" style="width: 7.5em; height: 1.75em;"> </span> </a> </div> <form action="/w/index.php" method="get" class="minerva-search-form"> <div class="search-box"><input type="hidden" name="title" value="특수:검색"> <input class="search skin-minerva-search-trigger" id="searchInput" type="search" name="search" placeholder="위키백과 검색" aria-label="위키백과 검색" autocapitalize="sentences" title="위키백과 검색 [f]" accesskey="f"> <span class="search-box-icon-overlay"><span class="minerva-icon minerva-icon--search"></span> </span> </div><button id="searchIcon" class="cdx-button cdx-button--size-large cdx-button--icon-only cdx-button--weight-quiet skin-minerva-search-trigger"> <span class="minerva-icon minerva-icon--search"></span> <span>검색</span> </button> </form> <nav class="minerva-user-navigation" aria-label="사용자 둘러보기"> </nav> </div> </header> <main id="content" class="mw-body"> <div class="banner-container"> <div id="siteNotice"> <!-- CentralNotice --> </div> </div> <div class="pre-content heading-holder"> <div class="page-heading"> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">정규 표현식</span></h1> <div class="tagline"> 집합을 표현하는 데 사용하는 형식 언어 </div> </div> <nav class="page-actions-menu"> <ul id="p-views" class="page-actions-menu__list"> <li id="language-selector" class="page-actions-menu__list-item"><a role="button" href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#p-lang" data-mw="interface" data-event-name="menu.languages" title="언어" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet language-selector"> <span class="minerva-icon minerva-icon--language"></span> <span>언어</span> </a></li> <li id="page-actions-watch" class="page-actions-menu__list-item"><a role="button" id="ca-watch" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%ED%8A%B9%EC%88%98:%EB%A1%9C%EA%B7%B8%EC%9D%B8&amp;returnto=%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-event-name="menu.watch" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet menu__item--page-actions-watch"> <span class="minerva-icon minerva-icon--star"></span> <span>주시</span> </a></li> <li id="page-actions-edit" class="page-actions-menu__list-item"><a role="button" id="ca-edit" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" data-event-name="menu.edit" data-mw="interface" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet edit-page menu__item--page-actions-edit"> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a></li> </ul> </nav><!-- version 1.0.2 (change every time you update a partial) --> <div id="mw-content-subtitle"></div> </div> <div id="bodyContent" class="content"> <div id="mw-content-text" class="mw-body-content"> <script>function mfTempOpenSection(id){var block=document.getElementById("mf-section-"+id);block.className+=" open-block";block.previousSibling.className+=" open-block";}</script> <div class="mw-content-ltr mw-parser-output" lang="ko" dir="ltr"> <section class="mf-section-0" id="mf-section-0"> <p><span class="nowrap"></span></p> <p><b>정규 표현식</b>(正規表現式, <span style="font-size: smaller;"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%98%81%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="영어">영어</a>: </span><span lang="en">regular expression</span>, 간단히 <span lang="en">regexp</span><sup id="cite_ref-1" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> 또는 <span lang="en">regex</span>, rational expression)<sup id="cite_ref-Mitkov2003_2-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-Mitkov2003-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Lawson2003_3-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-Lawson2003-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> 또는 <b>정규식</b>(正規式)은 특정한 규칙을 가진 문자열의 집합을 표현하는 데 사용하는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%98%95%EC%8B%9D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="형식 언어">형식 언어</a>이다. 정규 표현식은 많은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%85%8D%EC%8A%A4%ED%8A%B8_%ED%8E%B8%EC%A7%91%EA%B8%B0?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="텍스트 편집기">텍스트 편집기</a>와 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="프로그래밍 언어">프로그래밍 언어</a>에서 문자열의 검색과 치환을 위해 지원하고 있으며, 특히 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄">펄</a>과 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Tcl?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Tcl">Tcl</a>은 언어 자체에 강력한 정규 표현식을 구현하고 있다.</p> <figure class="mw-default-size mw-halign-right" typeof="mw:File/Thumb"> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%BC:The_river_effect_in_justified_text.jpg?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/2/23/The_river_effect_in_justified_text.jpg/220px-The_river_effect_in_justified_text.jpg" decoding="async" width="220" height="127" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/The_river_effect_in_justified_text.jpg/330px-The_river_effect_in_justified_text.jpg 1.5x,https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/The_river_effect_in_justified_text.jpg/440px-The_river_effect_in_justified_text.jpg 2x" data-file-width="875" data-file-height="504"></a> <figcaption> 노란색 강조 부분은 다음 정규식을 사용했을 때 매치된 것이다. <div class="mw-highlight mw-highlight-lang-ragel mw-content-ltr" dir="ltr"> <pre><span></span><span class="o">(?</span><span class="err">&lt;</span><span class="o">=</span><span class="err">\</span><span class="o">.)</span><span class="w"> </span><span class="o">{2,}(?=</span><span class="s">[A-Z]</span><span class="o">)</span> </pre> </div> </figcaption> </figure> <figure class="mw-default-size" typeof="mw:File/Thumb"> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%BC:Kleene.jpg?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Kleene.jpg/220px-Kleene.jpg" decoding="async" width="220" height="313" class="mw-file-element" srcset="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Kleene.jpg/330px-Kleene.jpg 1.5x,https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Kleene.jpg/440px-Kleene.jpg 2x" data-file-width="562" data-file-height="800"></a> <figcaption> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%8A%A4%ED%8B%B0%EB%B8%90_%ED%81%B4%EB%A0%88%EC%9D%B4%EB%8B%88?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="스티븐 클레이니">스티븐 클레이니</a>는 정규 표현식의 개념을 설립한 공로자이다. </figcaption> </figure> <p>컴퓨터 과학의 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="정규 언어">정규 언어</a>로부터 유래하였으나 구현체에 따라서 정규 언어보다 더 넓은 언어를 표현할 수 있는 경우도 있으며, 심지어 정규 표현식 자체의 문법도 여러 가지 존재하고 있다. 현재 많은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="프로그래밍 언어">프로그래밍 언어</a>, 텍스트 처리 프로그램, 고급 텍스트 편집기 등이 정규 표현식 기능을 제공한다. 일부는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄">펄</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바스크립트">자바스크립트</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%A3%A8%EB%B9%84_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="루비 (프로그래밍 언어)">루비</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Tcl?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Tcl">Tcl</a>처럼 문법에 내장되어 있는 반면 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8B%B7%EB%84%B7_%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="닷넷 프레임워크">닷넷 언어</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바 (프로그래밍 언어)">자바</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%B4%EC%8D%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="파이썬">파이썬</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/C_POSIX_%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="C POSIX 라이브러리">POSIX C</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/C%2B%2B?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="C++">C++</a> (<a href="https://ko-m-wikipedia-org.translate.goog/wiki/C%2B%2B11?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="C++11">C++11</a> 이후)에서는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%91%9C%EC%A4%80_%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="표준 라이브러리">표준 라이브러리</a>를 통해 제공한다. 그 밖의 대부분의 언어들은 별도의 라이브러리를 통해 정규 표현식을 제공한다.</p> <p>정규 표현식은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B2%80%EC%83%89_%EC%97%94%EC%A7%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="검색 엔진">검색 엔진</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9B%8C%EB%93%9C_%ED%94%84%EB%A1%9C%EC%84%B8%EC%84%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="워드 프로세서">워드 프로세서</a>와 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%AC%B8%EC%84%9C_%ED%8E%B8%EC%A7%91%EA%B8%B0?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="문서 편집기">문서 편집기</a>의 찾아 바꾸기 대화상자, 그리고 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Sed?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect mw-disambig" title="Sed">sed</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/AWK?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="AWK">AWK</a>와 같은 문자 처리 유틸리티, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%82%B1%EB%A7%90_%EB%B6%84%EC%84%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="낱말 분석">어휘 분석</a>에 사용된다.</p> <div id="toc" class="toc" role="navigation" aria-labelledby="mw-toc-heading"> <input type="checkbox" role="button" id="toctogglecheckbox" class="toctogglecheckbox" style="display:none"> <div class="toctitle" lang="ko" dir="ltr"> <h2 id="mw-toc-heading">목차</h2><span class="toctogglespan"><label class="toctogglelabel" for="toctogglecheckbox"></label></span> </div> <ul> <li class="toclevel-1 tocsection-1"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%ED%8C%A8%ED%84%B4"><span class="tocnumber">1</span> <span class="toctext">패턴</span></a></li> <li class="toclevel-1 tocsection-2"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EC%97%AD%EC%82%AC"><span class="tocnumber">2</span> <span class="toctext">역사</span></a></li> <li class="toclevel-1 tocsection-3"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EA%B8%B0%EB%B3%B8_%EA%B0%9C%EB%85%90"><span class="tocnumber">3</span> <span class="toctext">기본 개념</span></a></li> <li class="toclevel-1 tocsection-4"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EB%AC%B8%EB%B2%95"><span class="tocnumber">4</span> <span class="toctext">문법</span></a> <ul> <li class="toclevel-2 tocsection-5"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EA%B5%AC%EB%B6%84_%EB%AC%B8%EC%9E%90"><span class="tocnumber">4.1</span> <span class="toctext">구분 문자</span></a></li> <li class="toclevel-2 tocsection-6"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%ED%91%9C%EC%A4%80"><span class="tocnumber">4.2</span> <span class="toctext">표준</span></a> <ul> <li class="toclevel-3 tocsection-7"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#POSIX_%EA%B8%B0%EB%B3%B8_%EB%B0%8F_%ED%99%95%EC%9E%A5_%ED%91%9C%EC%A4%80_%EB%AC%B8%EB%B2%95"><span class="tocnumber">4.2.1</span> <span class="toctext">POSIX 기본 및 확장 표준 문법</span></a></li> <li class="toclevel-3 tocsection-8"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#POSIX_%ED%99%95%EC%9E%A5_%EB%AC%B8%EB%B2%95"><span class="tocnumber">4.2.2</span> <span class="toctext">POSIX 확장 문법</span></a></li> <li class="toclevel-3 tocsection-9"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EB%AC%B8%EC%9E%90_%ED%81%B4%EB%9E%98%EC%8A%A4"><span class="tocnumber">4.2.3</span> <span class="toctext">문자 클래스</span></a></li> </ul></li> <li class="toclevel-2 tocsection-10"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%ED%8E%84%EA%B3%BC_PCRE"><span class="tocnumber">4.3</span> <span class="toctext">펄과 PCRE</span></a></li> </ul></li> <li class="toclevel-1 tocsection-11"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EC%9D%B4%EC%9A%A9"><span class="tocnumber">5</span> <span class="toctext">이용</span></a></li> <li class="toclevel-1 tocsection-12"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EC%98%88"><span class="tocnumber">6</span> <span class="toctext">예</span></a></li> <li class="toclevel-1 tocsection-13"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EA%B0%99%EC%9D%B4_%EB%B3%B4%EA%B8%B0"><span class="tocnumber">7</span> <span class="toctext">같이 보기</span></a></li> <li class="toclevel-1 tocsection-14"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EA%B0%81%EC%A3%BC"><span class="tocnumber">8</span> <span class="toctext">각주</span></a></li> <li class="toclevel-1 tocsection-15"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EC%99%B8%EB%B6%80_%EB%A7%81%ED%81%AC"><span class="tocnumber">9</span> <span class="toctext">외부 링크</span></a></li> </ul> </div> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(1)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="패턴"><span id=".ED.8C.A8.ED.84.B4"></span>패턴</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=1&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 패턴" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-1 collapsible-block" id="mf-section-1"> <figure class="mw-default-size mw-halign-right" typeof="mw:File/Thumb"> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%BC:Thompson-kleene-star.svg?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-file-description"> <noscript> <img src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Thompson-kleene-star.svg/220px-Thompson-kleene-star.svg.png" decoding="async" width="220" height="110" class="mw-file-element" data-file-width="503" data-file-height="251"> </noscript><span class="lazy-image-placeholder" style="width: 220px;height: 110px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Thompson-kleene-star.svg/220px-Thompson-kleene-star.svg.png" data-width="220" data-height="110" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Thompson-kleene-star.svg/330px-Thompson-kleene-star.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Thompson-kleene-star.svg/440px-Thompson-kleene-star.svg.png 2x" data-class="mw-file-element">&nbsp;</span></a> <figcaption> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%81%B4%EB%A0%88%EC%9D%B4%EB%8B%88_%EC%8A%A4%ED%83%80?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="클레이니 스타">클레이니 스타</a>를 변환한 것.<br> (<i>s</i>*는 0번 이상의 <i>s</i>를 뜻함) </figcaption> </figure> <p>정규 표현식이라는 문구는 일치하는 텍스트가 준수해야 하는 "패턴"을 표현하기 위해 특정한 표준의 텍스트 신택스를 의미하기 위해 사용된다. 정규 표현식의 각 문자(즉, 패턴을 기술하는 문자열 안의 각 문자)는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%A9%94%ED%83%80%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="메타문자">메타문자</a>(특별한 의미로)로 이해되거나 정규 문자('문자 그대로', 즉 '리터럴'의 의미로)로 이해된다. 이를테면 정규식 <code>a.</code> <i>a</i>는 단지 'a'와 일치하는 리터럴 문자이며 <i>.</i>는 새 줄을 제외한 모든 문자와 일치시키는 메타 문자이다. 그러므로 이 정규식은 이를테면 'a', 'ax', 'a0'과 일치시킬 수 있다. 더불어, 메타문자와 리터럴 문자는 주어진 패턴의 텍스트를 식별하기 위해 사용할 수 있으며, 또 수많은 인스턴스를 처리하기 위해 사용할 수도 있다. 패턴 일치는 정확히 동일한 일치에서부터 매우 포괄적인 유사 일치(메타문자에 의해 제어)에 이르기까지 다양하다. 이를테면 <code>.</code>는 매우 포괄적인 패턴이며, <code>[a-z]</code>('a'부터 'z'까지의 모든 문자 일치)는 덜 포괄적이며 <code>a</code>는 정확한 패턴(단지 'a'만 일치)이다. 메타문자 문법은 다양한 입력 데이터의 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%85%8D%EC%8A%A4%ED%8A%B8_%EC%B2%98%EB%A6%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="텍스트 처리">텍스트 처리</a>의 자동화를 지시하는 정확하고 유연한 방법을 통해 표준 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/ASCII?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="ASCII">ASCII</a> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%BB%B4%ED%93%A8%ED%84%B0_%EC%9E%90%ED%8C%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="컴퓨터 자판">자판</a>을 사용하여 입력하기 쉬운 형태로, 미리 기술된 대상을 표현하기 위해 설계되었다.</p> <p>이러한 신택스를 가지는 매우 단순한 정규 표현식의 경우는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%AC%B8%EC%84%9C_%ED%8E%B8%EC%A7%91%EA%B8%B0?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="문서 편집기">문서 편집기</a>에서 2가지 방식으로 발음되는 동일한 단어를 위치시키는 것을 들 수 있으며, 이를테면 <code>seriali[sz]e</code>는 "serialise"와 "serialize"를 모두 일치시킨다. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%99%80%EC%9D%BC%EB%93%9C%EC%B9%B4%EB%93%9C_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="와일드카드 문자">와일드카드</a> 또한 이를 성취할 수 있으나 와일드카드가 패턴화할 수 있는 것으로 국한된다. (메타문자가 더 적으며 더 단순한 언어 기반임)</p> <p><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%99%80%EC%9D%BC%EB%93%9C%EC%B9%B4%EB%93%9C_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="와일드카드 문자">와일드카드 문자</a>를 사용하는 경우는 파일 목록에서 비슷한 이름을 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B8%80%EB%A1%9C%EB%B8%8C_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="글로브 (프로그래밍)">글로브</a> 처리하는 것인 반면, 정규 표현식은 일반적으로 텍스트 문자열과 패턴 일치가 되는 애플리케이션에 보통 사용된다. 이를테면 <code class="mw-highlight mw-highlight-lang-ragel mw-content-ltr" dir="ltr"><span class="o">^</span><span class="s">[ \t]</span><span class="o">+|</span><span class="s">[ \t]</span><span class="o">+$</span></code>는 줄 끝이나 줄 맨앞에 여분의 공백을 일치시킨다. 어떠한 숫자라도 일치시키기 위해 쓰이는 진보한 정규 표현식은 <code class="mw-highlight mw-highlight-lang-ragel mw-content-ltr" dir="ltr"><span class="s">[+-]</span><span class="o">?(</span><span class="err">\</span><span class="nv">d</span><span class="o">+(</span><span class="err">\</span><span class="o">.</span><span class="err">\</span><span class="nv">d</span><span class="o">+)?|</span><span class="err">\</span><span class="o">.</span><span class="err">\</span><span class="nv">d</span><span class="o">+)(</span><span class="s">[eE][+-]</span><span class="o">?</span><span class="err">\</span><span class="nv">d</span><span class="o">+)?</span></code>이다. 더 많은 예를 보려면 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EC%98%88">예</a> 문단을 참고할 것.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(2)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="역사"><span id=".EC.97.AD.EC.82.AC"></span>역사</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=2&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 역사" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-2 collapsible-block" id="mf-section-2"> <p>정규 표현식은 1951년 수학자 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%8A%A4%ED%8B%B0%EB%B8%90_%ED%81%B4%EB%A0%88%EC%9D%B4%EB%8B%88?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="스티븐 클레이니">스티븐 클레이니</a>가 정규 이벤트(regular event)라는 수학적 표기법을 사용하여 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="정규 언어">정규 언어</a>를 설명하면서 시작되었다.<sup id="cite_ref-Leung,_New_Mexico_State_University,_2010_4-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-Leung,_New_Mexico_State_University,_2010-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> 이는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9D%B4%EB%A1%A0_%EC%BB%B4%ED%93%A8%ED%84%B0_%EA%B3%BC%ED%95%99?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="이론 컴퓨터 과학">이론 컴퓨터 과학</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%98%A4%ED%86%A0%EB%A7%88%ED%83%80_%EC%9D%B4%EB%A1%A0?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="오토마타 이론">오토마타 이론</a>(계산 모델)의 하위 분야, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%98%95%EC%8B%9D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="형식 언어">형식 언어</a>의 설명 및 분류에서 나타났다. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%A8%ED%84%B4_%EB%A7%A4%EC%B9%AD?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="패턴 매칭">패턴 매칭</a>의 다른 초기 구현에는 정규 표현식을 사용하지 않고 대신 자체 패턴 일치 구성을 사용하는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/SNOBOL?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="SNOBOL">SNOBOL</a> 언어가 포함된다.</p> <p>정규 표현식은 1968년부터 텍스트 편집기의 패턴 매칭과 컴파일러의 어휘 분석이라는 두 가지 용도로 널리 사용되었다. 프로그램 형식에서 정규 표현식이 처음 등장한 것은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%BC%84_%ED%86%B0%ED%94%84%EC%8A%A8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="켄 톰프슨">켄 톰프슨</a>이 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%85%8D%EC%8A%A4%ED%8A%B8_%ED%8C%8C%EC%9D%BC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="텍스트 파일">텍스트 파일</a>의 패턴을 일치시키는 수단으로 클레이니의 표기법을 QED 편집기에 내장했을 때였다. 속도를 위해 톰프슨은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/JIT_%EC%BB%B4%ED%8C%8C%EC%9D%BC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="JIT 컴파일">JIT 컴파일</a>의 중요한 초기 예인 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%98%B8%ED%99%98_%EC%8B%9C%EB%B6%84%ED%95%A0_%EC%8B%9C%EC%8A%A4%ED%85%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="호환 시분할 시스템">호환 시분할 시스템</a>의 IBM 7094 코드에 JIT 컴파일을 통해 정규 표현식 일치를 구현했다. 그는 나중에 이 기능을 유닉스 편집기 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Ed_(%EB%AC%B8%EC%84%9C_%ED%8E%B8%EC%A7%91%EA%B8%B0)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Ed (문서 편집기)">ed</a>에 추가했고, 이로 인해 결국 인기 있는 검색 도구인 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Grep?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Grep">grep</a>에서 정규 표현식을 사용하게 되었다("grep"은 ed 편집기에서 정규 표현식 검색을 위한 명령에서 파생된 단어이다: "정규 표현식에 대한 전역 검색 및 일치하는 줄 출력"을 뜻하는 g/re/p). 톰프슨이 QED를 개발한 것과 거의 같은 시기에 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%94%EA%B8%80%EB%9F%AC%EC%8A%A4_T._%EB%A1%9C%EC%8A%A4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="더글러스 T. 로스">더글러스 T. 로스</a>(Douglas T. Ross)를 포함한 연구자 그룹은 컴파일러 설계의 어휘 분석에 사용되는 정규 표현식 기반 도구를 구현했다.</p> <p><a href="https://ko-m-wikipedia-org.translate.goog/wiki/Vi?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Vi">vi</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Lex?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Lex">lex</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Sed_(%EC%9C%A0%ED%8B%B8%EB%A6%AC%ED%8B%B0)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Sed (유틸리티)">sed</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/AWK?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="AWK">AWK</a> 및 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Expr?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Expr">expr</a>을 포함하여 1970년대 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%B2%A8_%EC%97%B0%EA%B5%AC%EC%86%8C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="벨 연구소">벨 연구소</a>의 유닉스 프로그램과 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9D%B4%EB%A7%A5%EC%8A%A4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="이맥스">이맥스</a>(자체적으로 호환되지 않는 구문 및 동작을 가지고 있음)와 같은 다른 프로그램에서 이러한 원래 형태의 정규 표현식의 다양한 변형이 사용되었다. 정규 표현식은 이후 다양한 프로그램에서 채택되었으며 이러한 초기 형식은 1992년 POSIX.2 표준으로 표준화되었다.</p> <p>1980년대에는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄">펄</a>에서 더 복잡한 정규 표현식이 등장했는데, 이는 원래 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%97%A8%EB%A6%AC_%EC%8A%A4%ED%8E%9C%EC%84%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="헨리 스펜서">헨리 스펜서</a>(1986)가 작성한 정규 표현식 라이브러리에서 파생되었으며 나중에 고급 정규 표현식(Advanced Regular Expressions)이라고 불리는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Tcl?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="Tcl">Tcl</a>에 대한 구현을 작성했다. Tcl 라이브러리는 향상된 성능 특성을 갖춘 하이브리드 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%B9%84%EA%B2%B0%EC%A0%95%EB%A1%A0%EC%A0%81_%EC%9C%A0%ED%95%9C_%EC%83%81%ED%83%9C_%EA%B8%B0%EA%B3%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="비결정론적 유한 상태 기계">NFA</a>/<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B2%B0%EC%A0%95%EB%A1%A0%EC%A0%81_%EC%9C%A0%ED%95%9C_%EC%83%81%ED%83%9C_%EA%B8%B0%EA%B3%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="결정론적 유한 상태 기계">DFA</a> 구현이다. 스펜서의 Tcl 정규 표현식 구현을 채택한 소프트웨어 프로젝트에는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/PostgreSQL?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="PostgreSQL">PostgreSQL</a>이 포함된다. 펄은 나중에 스펜서의 원래 라이브러리를 확장하여 많은 새로운 기능을 추가했다. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%9D%BC%EC%BF%A0_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="라쿠 (프로그래밍 언어)">라쿠</a>(구 명칭: 펄 6) 설계 노력의 일부는 펄의 정규 표현식 통합을 개선하고 구문 분석 표현식 문법 정의를 허용하도록 범위와 기능을 늘리는 것이다. 그 결과 라쿠 문법을 정의하고 해당 언어의 프로그래머에게 도구를 제공하는 데 사용되는 라쿠 규칙이라는 미니 언어가 탄생했다. 이러한 규칙은 펄 5.x 정규 표현식의 기존 기능을 유지하지만 하위 규칙을 통해 재귀 하강 파서의 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%B0%B0%EC%BB%A4%EC%8A%A4-%EB%82%98%EC%9A%B0%EB%A5%B4_%ED%91%9C%EA%B8%B0%EB%B2%95?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="배커스-나우르 표기법">BNF</a> 스타일 정의도 허용한다.</p> <p>문서 및 데이터베이스 모델링을 위한 구조화된 정보 표준에서 정규 표현식 사용은 1960년대에 시작되어 ISO SGML(ANSI "GCA 101-1983"에서 이전)과 같은 산업 표준이 통합된 1980년대에 확장되었다. 구조 사양 언어 표준의 커널은 정규 표현식으로 구성된다. 이러한 사용은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%AC%B8%EC%84%9C_%ED%98%95%EC%8B%9D_%EC%A0%95%EC%9D%98?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="문서 형식 정의">DTD</a> 요소 그룹 구문에서 분명하게 나타난다. 정규 표현식을 사용하기 전에는 많은 검색 언어에서 간단한 와일드카드를 허용했다. 예를 들어 임의의 문자 시퀀스와 일치하는 "*" 및 "?" 단일 문자와 일치한다. 이에 대한 유물은 오늘날 파일 이름에 대한 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B8%80%EB%A1%9C%EB%B8%8C_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="글로브 (프로그래밍)">글로브</a> 구문과 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/SQL?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="SQL">SQL</a> LIKE 연산자에서 찾을 수 있다.</p> <p>1997년부터 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%95%84%EB%A6%BD_%ED%95%98%EC%A0%A4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="필립 하젤">필립 하젤</a>은 펄의 정규 표현식 기능을 밀접하게 모방하려고 시도하고 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/PHP?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="PHP">PHP</a> 및 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%95%84%ED%8C%8C%EC%B9%98_HTTP_%EC%84%9C%EB%B2%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="아파치 HTTP 서버">아파치 HTTP 서버</a>를 포함한 많은 최신 도구에서 사용되는 PCRE(<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84_%ED%98%B8%ED%99%98_%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄 호환 정규 표현식">펄 호환 정규 표현식</a>)를 개발했다.</p> <p>오늘날 정규 표현식은 프로그래밍 언어, 텍스트 처리 프로그램(특히 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%82%B1%EB%A7%90_%EB%B6%84%EC%84%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="낱말 분석">어휘 분석기</a>), 고급 텍스트 편집기 및 기타 프로그램에서 널리 지원된다. 정규 표현식 지원은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바 (프로그래밍 언어)">자바</a> 및 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%B4%EC%8D%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="파이썬">파이썬</a>을 포함한 많은 프로그래밍 언어의 표준 라이브러리의 일부이며 펄 및 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/ECMA%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="ECMA스크립트">ECMA스크립트</a>를 포함한 다른 프로그래밍 언어의 구문에 내장되어 있다. 2010년대 후반에 몇몇 회사에서는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A4%91%EC%95%99_%EC%B2%98%EB%A6%AC_%EC%9E%A5%EC%B9%98?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="중앙 처리 장치">CPU</a> 구현에 비해 더 빠른 PCRE 호환 정규 표현식 엔진의 하드웨어, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/FPGA?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="FPGA">FPGA</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B7%B8%EB%9E%98%ED%94%BD_%EC%B2%98%EB%A6%AC_%EC%9E%A5%EC%B9%98?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="그래픽 처리 장치">GPU</a> 구현을 제공하기 시작했다.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(3)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="기본_개념"><span id=".EA.B8.B0.EB.B3.B8_.EA.B0.9C.EB.85.90"></span>기본 개념</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=3&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 기본 개념" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-3 collapsible-block" id="mf-section-3"> <p>주로 <b>패턴</b>(pattern)으로 부르는 정규 표현식은 특정 목적을 위해 필요한 문자열 집합을 지정하기 위해 쓰이는 식이다. 문자열의 유한 집합을 지정하는 단순한 방법은 문자열의 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%B0%EC%9D%B4%ED%84%B0_%EC%9A%94%EC%86%8C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="데이터 요소">요소</a>나 멤버를 나열하는 것이다. 그러나 문자열의 원하는 집합을 지정하기 위해 사용할 수 있는 더 간결한 방법들이 있다. 이를테면 3개의 문자열 "Handel", "Händel", "Haendel"을 포함하는 집합은 패턴 <code>H(ä|ae?)ndel</code>으로 지정이 가능하며 이러한 패턴은 3개의 문자열을 각각 <b>일치</b>(match)시킨다고 이야기한다.</p> <dl> <dt> 불리언 "또는" </dt> <dd> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%88%98%EC%A7%81%EC%84%A0_(%EA%B8%B0%ED%98%B8)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="수직선 (기호)">수직선</a>은 여러 항목 중 선택을 하기 위해 구분한다. 이를테면 <code>gray|grey</code>는 "gray" 또는 "grey"와 일치한다. </dd> </dl> <dl> <dt> 그룹 묶기 </dt> <dd> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B4%84%ED%98%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="괄호">괄호</a>를 사용하면 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%97%B0%EC%82%B0%EC%9E%90_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="연산자 (프로그래밍)">연산자</a>의 범위와 우선권을 정의할 수 있다. 이를테면 <code>gray|grey</code>와 <code>gr(a|e)y</code>는 "gray"나 "grey" 집합을 둘 다 기술하는 동일 패턴이다. </dd> </dl> <dl> <dt> 양의 지정 </dt> </dl> <dl> <dd> <table> <tbody> <tr> <td style="width:15px; vertical-align:top;"><code><b>?</b></code></td> <td>물음표는 0번 또는 1차례까지의 발생을 의미한다. 이를테면 <code>colou?r</code>는 "color"와 "colour"를 둘 다 일치시킨다.</td> </tr> <tr> <td style="vertical-align:top;"><code><b>*</b></code></td> <td>별표는 0번 이상의 발생을 의미한다. 이를테면 <code>ab*c</code>는 "ac", "abc", "abbc", "abbbc" 등을 일치시킨다.</td> </tr> <tr> <td style="vertical-align:top;"><code><b>+</b></code></td> <td>덧셈 기호는 1번 이상의 발생을 의미한다. 이를테면 <code>ab+c</code>는 "abc", "abbc", "abbbc" 등을 일치시키지만 "ac"는 일치시키지 않는다.</td> </tr> <tr> <td><code><b>{n}</b></code><sup id="cite_ref-grep_5-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-grep-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup></td> <td>정확히 n 번만큼 일치시킨다.</td> </tr> <tr> <td><code><b>{min,}</b></code><sup id="cite_ref-grep_5-1" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-grep-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup></td> <td>"min"번 이상만큼 일치시킨다.</td> </tr> <tr> <td><code><b>{min,max}</b></code><sup id="cite_ref-grep_5-2" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-grep-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup></td> <td>적어도 "min"번만큼 일치시키지만 "max"번을 초과하여 일치시키지는 않는다.</td> </tr> </tbody> </table> </dd> </dl> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(4)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="문법"><span id=".EB.AC.B8.EB.B2.95"></span>문법</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=4&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 문법" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-4 collapsible-block" id="mf-section-4"> <p>정규 표현식의 패턴은 대상 문자열과 일치시킨다. 이 패턴은 일련의 원자로 구성된다. 하나의 원자는 정규 표현식 패턴 안의 하나의 점이며, 대상 문자열과 일치시키기 위해 존재한다. 가장 단순한 형태의 원자는 리터럴(literal)이지만 원자를 일치시키기 위해 패턴을 묶을 때에는 메타문자로서 <code>( )</code>를 사용해야 한다. 메타문자는 원자 외에도 얼마나 많은 원자가 있는지를 가리키는 수량자(quantifier), 선택적인 대안을 가리키는 논리적 OR 문자, 그리고 원자의 존재를 부정하는 NOT 문자, 그리고 전에 일치된 원자를 참조할 수 있게 하는 역참조(backreference)를 만드는 것을 도와준다.</p> <div class="mw-heading mw-heading3"> <h3 id="구분_문자"><span id=".EA.B5.AC.EB.B6.84_.EB.AC.B8.EC.9E.90"></span>구분 문자</h3><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=5&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 구분 문자" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <p>프로그래밍 언어에서 정규 표현식을 입력할 때, 통상적인 문자열 리터럴로 표현할 수 있으므로 일반적으로 인용 부호로 처리된다. 이는 이를테면 C, 자바, 파이썬에서도 동일한데, 정규표현식 <code>re</code>는 <code>"re"</code>로 입력된다. 그러나 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AC%EB%B6%84_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="구분 문자">구분 문자</a>로 슬래시를 사용하는 경우도 있는데 정규 표현식 <code>re</code>에 대해서 <code>/re/</code>를 사용하는 식이다. 이는 ed라는 편집기에서 기원하며, <code>/</code>는 검색을 위한 편집기 명령어이고, <code>/re/</code>라는 식은 특정한 범위의 줄들을 지정하는데 사용할 수 있다. 비슷한 방식이 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Sed?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect mw-disambig" title="Sed">sed</a>에서 사용되는데, 검색 후 치환은 <code>s/re/replacement/</code>를 사용하며 패턴은 <code>/re1/,/re2/</code>처럼 특정한 범위의 줄을 지정하여 쉼표(,)로 결합할 수 있다. 이러한 표기법은 특히 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄">펄</a>에서도 사용된다.</p> <div class="mw-heading mw-heading3"> <h3 id="표준"><span id=".ED.91.9C.EC.A4.80"></span>표준</h3><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=6&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 표준" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <div class="mw-heading mw-heading4"> <h4 id="POSIX_기본_및_확장_표준_문법"><span id="POSIX_.EA.B8.B0.EB.B3.B8_.EB.B0.8F_.ED.99.95.EC.9E.A5_.ED.91.9C.EC.A4.80_.EB.AC.B8.EB.B2.95"></span>POSIX 기본 및 확장 표준 문법</h4><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=7&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: POSIX 기본 및 확장 표준 문법" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <p>문자 클래스, "["와 "]" 사이에 포함된 문자 집합 외부에서는 12개의 문자가, 내부에서는 오직 4개의 문자("<span lang="en">\</span>", "^", "-", "]", <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바 (프로그래밍 언어)">자바</a>와 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8B%B7%EB%84%B7_%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="닷넷 프레임워크">닷넷</a>은 "["를 포함)만 특수문자를 의미한다.<sup id="cite_ref-6" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> 아래는 POSIX 기본 및 확장 표준의 문법이다.</p> <table style="margin-left:1em;margin-right:0; font-size:95%" class="wikitable" width="900px"> <caption> </caption> <tbody> <tr> <th width="10%">메타문자</th> <th width="20%">기능</th> <th width="60%">설명</th> </tr> <tr> <td align="center">.</td> <td>문자</td> <td>1개의 문자와 일치한다. 단일행 모드에서는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%83%88%EC%A4%84_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="새줄 문자">새줄 문자</a>를 제외한다.</td> </tr> <tr> <td align="center">[ ]</td> <td>문자 클래스</td> <td>"["과 "]" 사이의 문자 중 하나를 선택한다. "¦"를 여러 개 쓴 것과 같은 의미이다. 예를 들면 [abc]d는 ad, bd, cd를 뜻한다. 또한, "-" 기호와 함께 쓰면 범위를 지정할 수 있다. "[a-z]"는 a부터 z까지 중 하나, "[1-9]"는 1부터 9까지 중의 하나를 의미한다.</td> </tr> <tr> <td align="center">[^ ]</td> <td>부정</td> <td>문자 클래스 안의 문자를 제외한 나머지를 선택한다. 예를 들면 [^abc]d는 ad, bd, cd는 포함하지 않고 ed, fd 등을 포함한다. [^a-z]는 알파벳 소문자로 시작하지 않는 모든 문자를 의미한다.</td> </tr> <tr> <td align="center">^</td> <td>처음</td> <td>문자열이나 행의 처음을 의미한다.</td> </tr> <tr> <td align="center">$</td> <td>끝</td> <td>문자열이나 행의 끝을 의미한다.</td> </tr> <tr> <td align="center">( )</td> <td>하위식</td> <td>여러 식을 하나로 묶을 수 있다. "abc¦adc"와 "a(b¦d)c"는 같은 의미를 가진다.</td> </tr> <tr> <td align="center">\n</td> <td>일치하는 n번째 패턴</td> <td>일치하는 패턴들 중 n번째를 선택하며, 여기에서 n은 1에서 9 중 하나가 올 수 있다.</td> </tr> <tr> <td align="center">*</td> <td>0회 이상</td> <td>0개 이상의 문자를 포함한다. "a*b"는 "b", "ab", "aab", "aaab"를 포함한다.</td> </tr> <tr> <td align="center">{m, n}</td> <td>m회 이상 n회 이하</td> <td>"a{1,3}b"는 "ab", "aab", "aaab"를 포함하지만, "b"나 "aaaab"는 포함하지 않는다.</td> </tr> </tbody> </table> <p>많은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="프로그래밍 언어">프로그래밍 언어</a>에서는 이를 확장한 문법을 가지고 있다. 이 중 POSIX에서 사용되는 확장 문법은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#POSIX_%ED%99%95%EC%9E%A5_%EB%AC%B8%EB%B2%95">POSIX 확장 문법</a>을 참고할 것. 그 외의 환경에 대해서는 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#%EB%AC%B8%EC%9E%90_%ED%81%B4%EB%9E%98%EC%8A%A4">문자 클래스</a> 단락을 참고할 것.</p> <div class="mw-heading mw-heading4"> <h4 id="POSIX_확장_문법"><span id="POSIX_.ED.99.95.EC.9E.A5_.EB.AC.B8.EB.B2.95"></span>POSIX 확장 문법</h4><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=8&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: POSIX 확장 문법" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <table style="margin-left:1em;margin-right:0; font-size:95%" class="wikitable" width="900px"> <caption> </caption> <tbody> <tr> <th width="10%">메타문자</th> <th width="20%">기능</th> <th width="60%">설명</th> </tr> <tr> <td align="center">?</td> <td>0 또는 1회</td> <td>"a?b"는 "b", "ab"를 포함한다.</td> </tr> <tr> <td align="center">+</td> <td>1회 이상</td> <td>"a+b"는 "ab", "aab", "aaab"를 포함하지만 "b"는 포함하지 않는다.</td> </tr> <tr> <td align="center">¦</td> <td>선택</td> <td>여러 식 중에서 하나를 선택한다. 예를 들어, "abc¦adc"는 abc와 adc 문자열을 모두 포함한다.</td> </tr> </tbody> </table> <div class="mw-heading mw-heading4"> <h4 id="문자_클래스"><span id=".EB.AC.B8.EC.9E.90_.ED.81.B4.EB.9E.98.EC.8A.A4"></span>문자 클래스</h4><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=9&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 문자 클래스" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <p>문자 클래스는 문자열 일치 다음으로 가장 기본적인 정규 표현식 개념이다. 이는 하나의 작은 일련의 문자열들을 더 큰 집합의 문자열들과 일치시키도록 한다. 이를테면, <code>[A-Z]</code>는 알파벳을 대표하며 <code>\d</code>는 임의의 숫자를 의미할 수 있다. 문자 클래스는 POSIX 수준에 적용한다.</p> <p><code>[a-Z]</code>와 같은 특정 범위의 문자들을 지정할 때 컴퓨터의 로캘 설정들은 문자 인코딩의 수치적 나열에 따라 내용을 결정한다. 그러한 나열에 따라 수치들을 저장할 수 있으며 그 순서는 <i>abc...zABC...Z</i>, <i>aAbBcC...zZ</i>와 같이 될 수 있다. 그러므로 POSIX 표준은 문자 클래스를 정의하며 이는 설치된 정규 표현식 처리기가 인지한다. 이러한 정의들은 다음의 표를 따른다:</p> <table class="wikitable"> <tbody> <tr> <th>POSIX</th> <th>비표준</th> <th>펄/Tcl</th> <th>Vim</th> <th>ASCII</th> <th>설명</th> </tr> <tr> <td><code>[:alnum:]</code></td> <td></td> <td></td> <td></td> <td><code>[A-Za-z0-9]</code></td> <td>영숫자</td> </tr> <tr> <td></td> <td><code>[:word:]</code></td> <td><code>\w</code></td> <td><code>\w</code></td> <td><code>[A-Za-z0-9_]</code></td> <td>영숫자 + "_"</td> </tr> <tr> <td></td> <td></td> <td><code>\W</code></td> <td><code>\W</code></td> <td><code>[^A-Za-z0-9_]</code></td> <td>낱말이 아닌 문자</td> </tr> <tr> <td><code>[:alpha:]</code></td> <td></td> <td></td> <td><code>\a</code></td> <td><code>[A-Za-z]</code></td> <td>알파벳 문자</td> </tr> <tr> <td><code>[:blank:]</code></td> <td></td> <td></td> <td><code>\s</code></td> <td><code>[ <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Ct?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\t">\t</a>]</code></td> <td>공백과 탭</td> </tr> <tr> <td></td> <td></td> <td><code>\b</code></td> <td><code>\&lt; \&gt;</code></td> <td><code>(?&lt;=\W)(?=\w)|(?&lt;=\w)(?=\W)</code></td> <td>낱말 경계</td> </tr> <tr> <td><code>[:cntrl:]</code></td> <td></td> <td></td> <td></td> <td><code>[\x00-\x1F\x7F]</code></td> <td><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%9C%EC%96%B4_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="제어 문자">제어 문자</a></td> </tr> <tr> <td><code>[:digit:]</code></td> <td></td> <td><code>\d</code></td> <td><code>\d</code></td> <td><code>[0-9]</code></td> <td>숫자</td> </tr> <tr> <td></td> <td></td> <td><code>\D</code></td> <td><code>\D</code></td> <td><code>[^0-9]</code></td> <td>숫자가 아닌 문자</td> </tr> <tr> <td><code>[:graph:]</code></td> <td></td> <td></td> <td></td> <td><code>[\x21-\x7E]</code></td> <td>보이는 문자</td> </tr> <tr> <td><code>[:lower:]</code></td> <td></td> <td></td> <td><code>\l</code></td> <td><code>[a-z]</code></td> <td>소문자</td> </tr> <tr> <td><code>[:print:]</code></td> <td></td> <td></td> <td><code>\p</code></td> <td><code>[\x20-\x7E]</code></td> <td>보이는 문자 및 공백 문자</td> </tr> <tr> <td><code>[:punct:]</code></td> <td></td> <td></td> <td></td> <td><code>[][!"#$%&amp;'()*+,./:;&lt;=&gt;?@\^_`{|}~-]</code></td> <td>구두점</td> </tr> <tr> <td><code>[:space:]</code></td> <td></td> <td><code>\s</code></td> <td><code>\_s</code> <small>(단순히 줄 끝에 추가)</small></td> <td><code>[ <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Ct?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\t">\t</a><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Cr?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\r">\r</a><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Cn?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\n">\n</a><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Cv?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\v">\v</a><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%5Cf?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="\f">\f</a>]</code></td> <td><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B3%B5%EB%B0%B1_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="공백 문자">공백 문자</a></td> </tr> <tr> <td></td> <td></td> <td><code>\S</code></td> <td></td> <td><code>[^ \t\r\n\v\f]</code></td> <td>공백이 아닌 모든 문자</td> </tr> <tr> <td><code>[:upper:]</code></td> <td></td> <td></td> <td><code>\u</code></td> <td><code>[A-Z]</code></td> <td>대문자</td> </tr> <tr> <td><code>[:xdigit:]</code></td> <td></td> <td></td> <td><code>\x</code></td> <td><code>[A-Fa-f0-9]</code></td> <td>16진수</td> </tr> </tbody> </table> <div class="mw-heading mw-heading3"> <h3 id="펄과_PCRE"><span id=".ED.8E.84.EA.B3.BC_PCRE"></span>펄과 PCRE</h3><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=10&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 펄과 PCRE" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <style data-mw-deduplicate="TemplateStyles:r34311305">.mw-parser-output .hatnote{}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}</style> <div role="note" class="hatnote navigation-not-searchable"> <span typeof="mw:File"><span> <noscript> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/52/Icons8_flat_search.svg/18px-Icons8_flat_search.svg.png" decoding="async" width="18" height="18" class="mw-file-element" data-file-width="512" data-file-height="512"> </noscript><span class="lazy-image-placeholder" style="width: 18px;height: 18px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/5/52/Icons8_flat_search.svg/18px-Icons8_flat_search.svg.png" data-alt="" data-width="18" data-height="18" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/52/Icons8_flat_search.svg/27px-Icons8_flat_search.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/52/Icons8_flat_search.svg/36px-Icons8_flat_search.svg.png 2x" data-class="mw-file-element">&nbsp;</span></span></span>&nbsp;<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84_%ED%98%B8%ED%99%98_%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄 호환 정규 표현식">펄 호환 정규 표현식</a> 문서를 참고하십시오. </div> <p>표현력과 (상대적으로) 양호한 가독성으로 인해 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바 (프로그래밍 언어)">자바</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바스크립트">자바스크립트</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%B4%EC%8D%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="파이썬">파이썬</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%A3%A8%EB%B9%84_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="루비 (프로그래밍 언어)">루비</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%A7%88%EC%9D%B4%ED%81%AC%EB%A1%9C%EC%86%8C%ED%94%84%ED%8A%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="마이크로소프트">마이크로소프트</a>의 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8B%B7%EB%84%B7_%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="닷넷 프레임워크">닷넷 프레임워크</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/XML_%EC%8A%A4%ED%82%A4%EB%A7%88?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="XML 스키마">XML 스키마</a> 등의 여러 수많은 유틸리티들과 프로그래밍 언어들은 펄의 정규식과 비슷한 문법을 채택하고 있다. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/Boost?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect mw-disambig" title="Boost">Boost</a>와 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/PHP?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="PHP">PHP</a>와 같은 일부 언어들과 도구들은 여러 방식의 정규식을 지원한다. 펄 파생 정규식 구현체들은 완전히 동일한 것은 아니며 일반적으로 1994년에 출시된 펄 5.0의 기능의 하위 집합을 구현하고 있다. 펄은 종종 다른 언어에서 발견되는 기능들을 도입하고 있는데, 이를테면 펄 5.10은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84_%ED%98%B8%ED%99%98_%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄 호환 정규 표현식">PCRE</a>와 파이썬에서 개발되는 문법 확장들을 구현한다.<sup id="cite_ref-7" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup></p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(5)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="이용"><span id=".EC.9D.B4.EC.9A.A9"></span>이용</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=11&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 이용" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-5 collapsible-block" id="mf-section-5"> <p>정규 표현식은 다양한 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%85%8D%EC%8A%A4%ED%8A%B8_%EC%B2%98%EB%A6%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="텍스트 처리">텍스트 처리</a> 작업, 더 일반적으로 문자열 처리에 유용하며, 여기에서 데이터는 반드시 텍스트일 필요는 없다. 일반적으로 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%B0%EC%9D%B4%ED%84%B0_%EA%B2%80%EC%A6%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="데이터 검증">데이터 검증</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%B0%EC%9D%B4%ED%84%B0_%EC%8A%A4%ED%81%AC%EB%9E%98%ED%95%91?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="데이터 스크래핑">데이터 스크래핑</a>(일반적으로 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9B%B9_%EC%8A%A4%ED%81%AC%EB%9E%98%ED%95%91?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="웹 스크래핑">웹 스크래핑</a>), <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%B0%EC%9D%B4%ED%84%B0_%EB%9E%AD%EA%B8%80%EB%A7%81?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="데이터 랭글링">데이터 랭글링</a>, 단순 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AC%EB%AC%B8_%EB%B6%84%EC%84%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="구문 분석">파싱</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%AC%B8%EB%B2%95_%EA%B0%95%EC%A1%B0?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="문법 강조">문법 강조</a> 시스템 개발 등의 작업에 응용된다.</p> <p>정규 표현식이 인터넷 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B2%80%EC%83%89_%EC%97%94%EC%A7%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="검색 엔진">검색 엔진</a>에 유용할 수 있으나 전체 데이터베이스를 거쳐 이것들을 처리하기에는 정규 표현식의 복잡도와 설계에 따라 컴퓨터 자원을 과도하게 소비할 수 있다. 대개의 경우 시스템 관리자들이 정규 표현식 기반 쿼리를 내부적으로 수행할 수 있지만 대부분의 검색 엔진들은 대중에게 정규 표현식 지원을 제공하지 않는다.</p> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(6)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="예"><span id=".EC.98.88"></span>예</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=12&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 예" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-6 collapsible-block" id="mf-section-6"> <p>특정 문법 규칙은 사용 중인 특정 구현체, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="프로그래밍 언어">프로그래밍 언어</a>, <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC_(%EC%BB%B4%ED%93%A8%ED%8C%85)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="라이브러리 (컴퓨팅)">라이브러리</a>에 따라 다양하다. 또한 정규 표현식 구현체들의 기능은 <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%86%8C%ED%94%84%ED%8A%B8%EC%9B%A8%EC%96%B4_%EB%B2%84%EC%A0%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="소프트웨어 버전">소프트웨어 버전</a> 간에도 다를 수 있다.</p> <p>정규 표현식들은 예제 없이 설명과 이해를 동시에 하는 것은 어려울 수 있다. 아래에는 정규 표현식의 속성 중 일부의 기본적인 설명을 제시한다.</p> <p>아래의 항목들은 예제에 사용된다.<sup id="cite_ref-clarify000_8-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-clarify000-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup></p> <pre> 메타문자&nbsp;;; 메타문자들의 열은 표현할 정규식을 지정한다. =~ m// &nbsp;;; 펄에서 문자열을 '일치'시키려는 동작을 지정한다. =~ s/// &nbsp;;; 펄에서 문자열을 '대체'시키려는 동작을 지정한다. </pre> <p>이 예제들에 사용된 문법과 규칙들은 다른 프로그래밍 환경에서와 일치한다.<sup id="cite_ref-9" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup></p> <table class="wikitable"> <tbody> <tr> <th>메타문자</th> <th>설명</th> <th>예시<sup id="cite_ref-10" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup></th> </tr> <tr> <th><code>.</code></th> <td>일반적으로 새 줄을 제외한 모든 어떠한 문자열과도 일치한다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/...../</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 has length &gt;= 5\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <pre>Hello World has length &gt;= 5 </pre></td> </tr> <tr> <th><code>( )</code></th> <td>일련의 패턴 요소들을 하나의 요소로 묶는다. <br> 괄호 안의 패턴을 일치시킬 때 <code>$1</code>, <code>$2</code>, ... 중 하나를 사용할 수 있다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/(H..).(o..)/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"We matched '$1' and '$2'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>We matched 'Hel' and 'o W' </pre> </div></td> </tr> <tr> <th><code>+</code></th> <td>1번 이상 발생하는 패턴과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/l+/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There are one or more consecutive letter \"l\"'s in $string1\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There are one or more consecutive letter "l"'s in Hello World </pre> </div></td> </tr> <tr> <th><code>?</code></th> <td>0~1번 발생하는 패턴과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/H.?e/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There is an 'H' and a 'e' separated by "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"0-1 characters (Ex: He Hoe)\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There is an 'H' and a 'e' separated by 0-1 characters (Ex: He Hoe) </pre> </div></td> </tr> <tr> <th><code>?</code></th> <td></td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/(l.+?o)/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"The non-greedy match with 'l' followed by one or\n"</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"more characters is 'llo' rather than 'llo Wo'.\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>The non-greedy match with 'l' followed by one or more characters is 'llo' rather than 'llo Wo'. </pre> </div></td> </tr> <tr> <th><code>*</code></th> <td>0번 이상 발생하는 패턴과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/el*o/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There is an 'e' followed by zero to many "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"'l' followed by 'o' (eo, elo, ello, elllo)\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There is an 'e' followed by zero to many 'l' followed by 'o' (eo, elo, ello, elllo) </pre> </div></td> </tr> <tr> <th>{M,N}</th> <td>최소 M번, 최대 N번 발생되는 패턴과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/l{1,2}/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There exists a substring with at least 1 "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"and at most 2 l's in $string1\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There exists a substring with at least 1 and at most 2 l's in Hello World </pre> </div></td> </tr> <tr> <th><code>[...]</code></th> <td>가능한 문자열의 집합과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/[aeiou]+/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 contains one or more vowels.\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World contains one or more vowels. </pre> </div></td> </tr> <tr> <th><code>|</code></th> <td>가능성 있는 항목들을 구별하여 선택한다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/(Hello|Hi|Pogo)/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"At least one of Hello, Hi, or Pogo is "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"contained in $string1.\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>At least one of Hello, Hi, or Pogo is contained in Hello World . </pre> </div></td> </tr> <tr> <th><code>\b</code></th> <td></td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/llo\b/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There is a word that ends with 'llo'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There is a word that ends with 'llo' </pre> </div></td> </tr> <tr> <th><code>\w</code></th> <td>"_"를 포함한 영숫자를 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\w/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There is at least one alphanumeric "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"character in $string1 (A-Z, a-z, 0-9, _)\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There is at least one alphanumeric character in Hello World (A-Z, a-z, 0-9, _) </pre> </div></td> </tr> <tr> <th><code>\W</code></th> <td>"_"를 제외하여 영숫자가 아닌 문자열들과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\W/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"The space between Hello and "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"World is not alphanumeric\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>The space between Hello and World is not alphanumeric </pre> </div></td> </tr> <tr> <th><code>\s</code></th> <td>공백 문자와 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\s.*\s/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There are TWO whitespace characters, which may"</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">" be separated by other characters, in $string1"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There are TWO whitespace characters, which may be separated by other characters, in Hello World </pre> </div></td> </tr> <tr> <th><code>\S</code></th> <td>공백을 제외한 어떠한 것이든 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\S.*\S/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There are TWO non-whitespace characters, which"</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">" may be separated by other characters, in $string1"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There are TWO non-whitespace characters, which may be separated by other characters, in Hello World </pre> </div></td> </tr> <tr> <th><code>\d</code></th> <td>숫자를 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"99 bottles of beer on the wall."</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/(\d+)/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$1 is the first number in '$string1'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>99 is the first number in '99 bottles of beer on the wall.' </pre> </div></td> </tr> <tr> <th><code>\D</code></th> <td>숫자가 아닌 항목을 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\D/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"There is at least one character in $string1"</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">" that is not a digit.\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>There is at least one character in Hello World that is not a digit. </pre> </div></td> </tr> <tr> <th><code>^</code></th> <td>줄이나 문자열의 시작점과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/^He/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 starts with the characters 'He'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World starts with the characters 'He' </pre> </div></td> </tr> <tr> <th><code>$</code></th> <td>줄이나 문자열의 끝과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/rld$/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 is a line or string "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"that ends with 'rld'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World is a line or string that ends with 'rld' </pre> </div></td> </tr> <tr> <th><code>\A</code></th> <td>문자열의 시작점과 일치시킨다. (내부 줄이 아닌)</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello\nWorld\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/\AH/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 is a string "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"that starts with 'H'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World is a string that starts with 'H' </pre> </div></td> </tr> <tr> <th><code>\z</code></th> <td>문자열의 끝과 일치시킨다. (내부 줄이 아닌)<sup id="cite_ref-Perl_Best_Practices_11-0" class="reference"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_note-Perl_Best_Practices-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup></td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello\nWorld\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/d\n\z/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 is a string "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"that ends with 'd\\n'\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World is a string that ends with 'd\n' </pre> </div></td> </tr> <tr> <th><code>[^...]</code></th> <td>괄호 안의 항목을 제외한 모든 문자열과 일치시킨다.</td> <td> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"> <pre><span></span><span class="nv">$string1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello World\n"</span><span class="p">;</span> <span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nv">$string1</span><span class="w"> </span><span class="o">=~</span><span class="w"> </span><span class="sr">m/[^abc]/</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"$string1 contains a character other than "</span><span class="p">;</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">"a, b, and c\n"</span><span class="p">;</span> <span class="p">}</span> </pre> </div><b>출력:</b> <div class="mw-highlight mw-highlight-lang-text mw-content-ltr" dir="ltr"> <pre><span></span>Hello World contains a character other than a, b, and c </pre> </div></td> </tr> </tbody> </table> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(7)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="같이_보기"><span id=".EA.B0.99.EC.9D.B4_.EB.B3.B4.EA.B8.B0"></span>같이 보기</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=13&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 같이 보기" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-7 collapsible-block" id="mf-section-7"> <ul> <li><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%EC%96%B8%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="정규 언어">정규 언어</a></li> <li><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%EB%AC%B8%EB%B2%95?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="정규 문법">정규 문법</a></li> <li><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%9C%EC%96%B4_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="제어 문자">제어 문자</a></li> </ul> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(8)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="각주"><span id=".EA.B0.81.EC.A3.BC"></span>각주</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=14&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 각주" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-8 collapsible-block" id="mf-section-8"> <style data-mw-deduplicate="TemplateStyles:r35556958">.mw-parser-output .reflist{font-size:90%;margin-bottom:0.5em;list-style-type:decimal}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style> <div class="reflist"> <div class="mw-references-wrap mw-references-columns"> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-1">↑</a></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=http://www.regular-expressions.info/tutorial.html">What Regular Expressions Are Exactly - Terminology</a></span></li> <li id="cite_note-Mitkov2003-2"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-Mitkov2003_2-0">↑</a></span> <span class="reference-text"><cite class="citation book">Ruslan Mitkov (2003). <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://books.google.com/books?id%3Dyl6AnaKtVAkC%26pg%3DPA754">《The Oxford Handbook of Computational Linguistics》</a>. Oxford University Press. 754쪽. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AD%EC%A0%9C_%ED%91%9C%EC%A4%80_%EB%8F%84%EC%84%9C_%EB%B2%88%ED%98%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="국제 표준 도서 번호">ISBN</a>&nbsp;<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8A%B9%EC%88%98:%EC%B1%85%EC%B0%BE%EA%B8%B0/978-0-19-927634-9?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="특수:책찾기/978-0-19-927634-9"><bdi>978-0-19-927634-9</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=The+Oxford+Handbook+of+Computational+Linguistics&amp;rft.pages=754&amp;rft.pub=Oxford+University+Press&amp;rft.date=2003&amp;rft.isbn=978-0-19-927634-9&amp;rft.au=Ruslan+Mitkov&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3Dyl6AnaKtVAkC%26pg%3DPA754&amp;rfr_id=info%3Asid%2Fko.wikipedia.org%3A%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D" class="Z3988"><span style="display:none;">&nbsp;</span></span></span></li> <li id="cite_note-Lawson2003-3"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-Lawson2003_3-0">↑</a></span> <span class="reference-text"><cite class="citation book">Mark V. Lawson (2003년 9월 17일). <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://books.google.com/books?id%3DMDQ_K7-z2AMC%26pg%3DPA98">《Finite Automata》</a>. CRC Press. 98–100쪽. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AD%EC%A0%9C_%ED%91%9C%EC%A4%80_%EB%8F%84%EC%84%9C_%EB%B2%88%ED%98%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="국제 표준 도서 번호">ISBN</a>&nbsp;<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8A%B9%EC%88%98:%EC%B1%85%EC%B0%BE%EA%B8%B0/978-1-58488-255-8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="특수:책찾기/978-1-58488-255-8"><bdi>978-1-58488-255-8</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Finite+Automata&amp;rft.pages=98-100&amp;rft.pub=CRC+Press&amp;rft.date=2003-09-17&amp;rft.isbn=978-1-58488-255-8&amp;rft.au=Mark+V.+Lawson&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DMDQ_K7-z2AMC%26pg%3DPA98&amp;rfr_id=info%3Asid%2Fko.wikipedia.org%3A%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D" class="Z3988"><span style="display:none;">&nbsp;</span></span></span></li> <li id="cite_note-Leung,_New_Mexico_State_University,_2010-4"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-Leung,_New_Mexico_State_University,_2010_4-0">↑</a></span> <span class="reference-text"><cite class="citation web">Leung, Hing (16 September 2010). <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://web.archive.org/web/20131205193130/https://www.cs.nmsu.edu/historical-projects/Projects/kleene.9.16.10.pdf">“Regular Languages and Finite Automata”</a> <span style="font-size:85%;">(PDF)</span>. 《<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%89%B4%EB%A9%95%EC%8B%9C%EC%BD%94_%EC%A3%BC%EB%A6%BD_%EB%8C%80%ED%95%99%EA%B5%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="뉴멕시코 주립 대학교">New Mexico State University</a>》. 5 December 2013에 <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.cs.nmsu.edu/historical-projects/Projects/kleene.9.16.10.pdf">원본 문서</a> <span style="font-size:85%;">(PDF)</span>에서 보존된 문서<span class="reference-accessdate">. <span class="nowrap">13 August</span> 2019에 확인함</span>. <q>The concept of regular events was introduced by Kleene via the definition of regular expressions.</q></cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=New+Mexico+State+University&amp;rft.atitle=Regular+Languages+and+Finite+Automata&amp;rft.date=2010-09-16&amp;rft.aulast=Leung&amp;rft.aufirst=Hing&amp;rft_id=https%3A%2F%2Fwww.cs.nmsu.edu%2Fhistorical-projects%2FProjects%2Fkleene.9.16.10.pdf&amp;rfr_id=info%3Asid%2Fko.wikipedia.org%3A%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D" class="Z3988"><span style="display:none;">&nbsp;</span></span></span></li> <li id="cite_note-grep-5"><span class="mw-cite-backlink">↑ <sup><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-grep_5-0">가</a></sup> <sup><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-grep_5-1">나</a></sup> <sup><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-grep_5-2">다</a></sup></span> <span class="reference-text">grep(1) man page</span></li> <li id="cite_note-6"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-6">↑</a></span> <span class="reference-text">잰 고이바에르츠, 스티븐 리바이선 저 김지원 역, 《한 권으로 끝내는 정규표현식》, 한빛미디어(주), 2010, 53쪽</span></li> <li id="cite_note-7"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-7">↑</a></span> <span class="reference-text"><cite class="citation web"><a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=http://perldoc.perl.org/perlre.html%23PCRE%252fPython-Support">“Perl Regular Expression Documentation”</a>. perldoc.perl.org<span class="reference-accessdate">. 2012년 1월 8일에 확인함</span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Perl+Regular+Expression+Documentation&amp;rft.pub=perldoc.perl.org&amp;rft_id=http%3A%2F%2Fperldoc.perl.org%2Fperlre.html%23PCRE%252fPython-Support&amp;rfr_id=info%3Asid%2Fko.wikipedia.org%3A%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D" class="Z3988"><span style="display:none;">&nbsp;</span></span></span></li> <li id="cite_note-clarify000-8"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-clarify000_8-0">↑</a></span> <span class="reference-text">The character 'm' is not always required to specify a <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8E%84?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="펄">Perl</a> match operation. For example, <code>m/[^abc]/</code> could also be rendered as <code>/[^abc]/</code>. The 'm' is only necessary if the user wishes to specify a match operation without using a forward-slash as the regex <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AC%EB%B6%84_%EB%AC%B8%EC%9E%90?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="구분 문자">delimiter</a>. Sometimes it is useful to specify an alternate regex delimiter in order to avoid "<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AC%EB%B6%84_%EB%AC%B8%EC%9E%90_%EC%B6%A9%EB%8F%8C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="구분 문자 충돌">delimiter collision</a>". See '<a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=http://perldoc.perl.org/perlre.html">perldoc perlre</a>' for more details.</span></li> <li id="cite_note-9"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-9">↑</a></span> <span class="reference-text">e.g., see <i><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9E%90%EB%B0%94_(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D_%EC%96%B8%EC%96%B4)?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="자바 (프로그래밍 언어)">자바</a> <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%98%A4%EB%9D%BC%EC%9D%BC%EB%A6%AC_%EB%AF%B8%EB%94%94%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="오라일리 미디어">in a Nutshell</a></i>&nbsp;— Page 213, <i><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8C%8C%EC%9D%B4%EC%8D%AC?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="파이썬">파이썬</a> Scripting for Computational Science</i>&nbsp;— Page 320, Programming <a href="https://ko-m-wikipedia-org.translate.goog/wiki/PHP?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="PHP">PHP</a>&nbsp;— Page 106</span></li> <li id="cite_note-10"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-10">↑</a></span> <span class="reference-text">모든 if문은 true(참)을 반환한다</span></li> <li id="cite_note-Perl_Best_Practices-11"><span class="mw-cite-backlink"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB#cite_ref-Perl_Best_Practices_11-0">↑</a></span> <span class="reference-text"><cite class="citation book"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EB%8D%B0%EC%9D%B4%EB%AF%B8%EC%96%B8_%EC%BD%98%EC%9B%A8%EC%9D%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="데이미언 콘웨이">Conway, Damian</a> (2005). 〈Regular Expressions, End of String〉. <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://www.scribd.com/doc/15491004/Perl-Best-Practices">《Perl Best Practices》</a>. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%98%A4%EB%9D%BC%EC%9D%BC%EB%A6%AC_%EB%AF%B8%EB%94%94%EC%96%B4?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="오라일리 미디어">O'Reilly</a>. 240쪽. <a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EA%B5%AD%EC%A0%9C_%ED%91%9C%EC%A4%80_%EB%8F%84%EC%84%9C_%EB%B2%88%ED%98%B8?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" class="mw-redirect" title="국제 표준 도서 번호">ISBN</a>&nbsp;<a href="https://ko-m-wikipedia-org.translate.goog/wiki/%ED%8A%B9%EC%88%98:%EC%B1%85%EC%B0%BE%EA%B8%B0/978-0-596-00173-5?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="특수:책찾기/978-0-596-00173-5"><bdi>978-0-596-00173-5</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=Regular+Expressions%2C+End+of+String&amp;rft.btitle=Perl+Best+Practices&amp;rft.pages=240&amp;rft.pub=O%27Reilly&amp;rft.date=2005&amp;rft.isbn=978-0-596-00173-5&amp;rft.aulast=Conway&amp;rft.aufirst=Damian&amp;rft_id=http%3A%2F%2Fwww.scribd.com%2Fdoc%2F15491004%2FPerl-Best-Practices&amp;rfr_id=info%3Asid%2Fko.wikipedia.org%3A%EC%A0%95%EA%B7%9C+%ED%91%9C%ED%98%84%EC%8B%9D" class="Z3988"><span style="display:none;">&nbsp;</span></span></span></li> </ol> </div> </div> </section> <div class="mw-heading mw-heading2 section-heading" onclick="mfTempOpenSection(9)"> <span class="indicator mf-icon mf-icon-expand mf-icon--small"></span> <h2 id="외부_링크"><span id=".EC.99.B8.EB.B6.80_.EB.A7.81.ED.81.AC"></span>외부 링크</h2><span class="mw-editsection"> <a role="button" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=edit&amp;section=15&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB" title="부분 편집: 외부 링크" class="cdx-button cdx-button--size-large cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--icon-only cdx-button--weight-quiet "> <span class="minerva-icon minerva-icon--edit"></span> <span>편집</span> </a> </span> </div> <section class="mf-section-9 collapsible-block" id="mf-section-9"> <ul> <li><span typeof="mw:File"><span> <noscript> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/12px-Commons-logo.svg.png" decoding="async" width="12" height="16" class="mw-file-element" data-file-width="1024" data-file-height="1376"> </noscript><span class="lazy-image-placeholder" style="width: 12px;height: 16px;" data-src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/12px-Commons-logo.svg.png" data-alt="" data-width="12" data-height="16" data-srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/18px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/24px-Commons-logo.svg.png 2x" data-class="mw-file-element">&nbsp;</span></span></span> 위키미디어 공용에 <span class="plainlinks"><a class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://commons.wikimedia.org/wiki/Category:Regex?uselang%3Dko">정규 표현식</a></span> 관련 미디어 분류가 있습니다.</li> <li><b><span style="font-size: smaller;" title="언어: 영어">(영어)</span></b> <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://curlie.org/Computers/Programming/Languages/Regular_Expressions">정규 표현식</a> - Curlie</li> <li><b><span style="font-size: smaller;" title="언어: 영어">(영어)</span></b> ISO/IEC 9945-2:1993 <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://web.archive.org/web/20151107053308/http://www.iso.org/iso/catalogue_detail.htm?csnumber%3D17841"><i>Information technology – Portable Operating System Interface (POSIX) – Part 2: Shell and Utilities</i></a></li> <li><b><span style="font-size: smaller;" title="언어: 영어">(영어)</span></b> ISO/IEC 9945-2:2002 <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://web.archive.org/web/20151107053309/http://www.iso.org/iso/iso_catalogue/catalogue_ics/catalogue_detail_ics.htm?csnumber%3D37313"><i>Information technology – Portable Operating System Interface (POSIX) – Part 2: System Interfaces</i></a></li> <li><b><span style="font-size: smaller;" title="언어: 영어">(영어)</span></b> ISO/IEC 9945-2:2003 <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://web.archive.org/web/20151107053310/http://www.iso.org/iso/iso_catalogue/catalogue_ics/catalogue_detail_ics.htm?csnumber%3D38790"><i>Information technology – Portable Operating System Interface (POSIX) – Part 2: System Interfaces</i></a></li> <li><b><span style="font-size: smaller;" title="언어: 영어">(영어)</span></b> ISO/IEC/IEEE 9945:2009 <a rel="nofollow" class="external text" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://web.archive.org/web/20151107053310/http://www.iso.org/iso/iso_catalogue/catalogue_ics/catalogue_detail_ics.htm?csnumber%3D50516"><i>Information technology – Portable Operating System Interface (POSIX®) Base Specifications, Issue 7</i></a></li> </ul> <div class="navbox-styles"> <style data-mw-deduplicate="TemplateStyles:r36480591">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}.mw-parser-output .hlist-pipe dd:after,.mw-parser-output .hlist-pipe li:after{content:" | ";font-weight:normal}.mw-parser-output .hlist-hyphen dd:after,.mw-parser-output .hlist-hyphen li:after{content:" - ";font-weight:normal}.mw-parser-output .hlist-comma dd:after,.mw-parser-output .hlist-comma li:after{content:", ";font-weight:normal}.mw-parser-output .hlist-slash dd:after,.mw-parser-output .hlist-slash li:after{content:" / ";font-weight:normal}</style> <style data-mw-deduplicate="TemplateStyles:r36429174">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}</style> </div> <div class="navbox-styles"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r36480591"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r36429174"> </div><!-- NewPP limit report Parsed by mw‐web.codfw.main‐7c4dcdbb87‐f2cts Cached time: 20241203122201 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.504 seconds Real time usage: 0.713 seconds Preprocessor visited node count: 2314/1000000 Post‐expand include size: 59104/2097152 bytes Template argument size: 11503/2097152 bytes Highest expansion depth: 14/100 Expensive parser function count: 53/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 50230/5000000 bytes Lua time usage: 0.198/10.000 seconds Lua memory usage: 4785794/52428800 bytes Number of Wikibase entities loaded: 1/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 587.795 1 -total 31.98% 187.966 1 틀:위키데이터_속성_추적 18.79% 110.465 5 틀:둘러보기_상자 18.45% 108.455 1 틀:각주 18.43% 108.340 1 틀:형식_언어_및_형식_문법 17.66% 103.824 1 틀:둘러보기_상자_다단 13.24% 77.837 3 틀:서적_인용 5.78% 33.977 1 틀:위키공용분류-줄 5.41% 31.800 1 틀:전거_통제 5.25% 30.844 1 틀:Sister-inline --> <!-- Saved in parser cache with key kowiki:pcache:74388:|#|:idhash:canonical and timestamp 20241203122201 and revision id 37443074. Rendering was triggered because: page-view --> </section> </div><!-- MobileFormatter took 0.022 seconds --><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --> <noscript> <img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=mobile" alt="" width="1" height="1" style="border: none; position: absolute;"> </noscript> <div class="printfooter" data-nosnippet=""> 원본 주소 "<a dir="ltr" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ko.wikipedia.org/w/index.php?title%3D%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D%26oldid%3D37443074">https://ko.wikipedia.org/w/index.php?title=정규_표현식&amp;oldid=37443074</a>" </div> </div> </div> <div class="post-content" id="page-secondary-actions"> </div> </main> <footer class="mw-footer minerva-footer" role="contentinfo"><a class="last-modified-bar" href="https://ko-m-wikipedia-org.translate.goog/w/index.php?title=%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D&amp;action=history&amp;_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB"> <div class="post-content last-modified-bar__content"><span class="minerva-icon minerva-icon-size-medium minerva-icon--modified-history"></span> <span class="last-modified-bar__text modified-enhancement" data-user-name="Khlee560" data-user-gender="unknown" data-timestamp="1719755928"> <span>2024년 6월 30일 (일) 22:58에 마지막으로 편집됨</span> </span> <span class="minerva-icon minerva-icon-size-small minerva-icon--expand"></span> </div></a> <div class="post-content footer-content"> <div id="mw-data-after-content"> <div class="read-more-container"></div> </div> <div id="p-lang"> <h4>언어</h4> <section> <ul id="p-variants" class="minerva-languages"></ul> <ul class="minerva-languages"> <li class="interlanguage-link interwiki-af mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://af.wikipedia.org/wiki/Regul%25C3%25AAre_uitdrukking" title="Regulêre uitdrukking – 아프리칸스어" lang="af" hreflang="af" data-title="Regulêre uitdrukking" data-language-autonym="Afrikaans" data-language-local-name="아프리칸스어" class="interlanguage-link-target"><span>Afrikaans</span></a></li> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ar.wikipedia.org/wiki/%25D8%25AA%25D8%25B9%25D8%25A8%25D9%258A%25D8%25B1_%25D9%2586%25D9%2585%25D8%25B7%25D9%258A" title="تعبير نمطي – 아랍어" lang="ar" hreflang="ar" data-title="تعبير نمطي" data-language-autonym="العربية" data-language-local-name="아랍어" class="interlanguage-link-target"><span>العربية</span></a></li> <li class="interlanguage-link interwiki-az mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://az.wikipedia.org/wiki/Requlyar_ifad%25C9%2599" title="Requlyar ifadə – 아제르바이잔어" lang="az" hreflang="az" data-title="Requlyar ifadə" data-language-autonym="Azərbaycanca" data-language-local-name="아제르바이잔어" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li> <li class="interlanguage-link interwiki-bar mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://bar.wikipedia.org/wiki/Regex" title="Regex – Bavarian" lang="bar" hreflang="bar" data-title="Regex" data-language-autonym="Boarisch" data-language-local-name="Bavarian" class="interlanguage-link-target"><span>Boarisch</span></a></li> <li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://bg.wikipedia.org/wiki/%25D0%25A0%25D0%25B5%25D0%25B3%25D1%2583%25D0%25BB%25D1%258F%25D1%2580%25D0%25B5%25D0%25BD_%25D0%25B8%25D0%25B7%25D1%2580%25D0%25B0%25D0%25B7" title="Регулярен израз – 불가리아어" lang="bg" hreflang="bg" data-title="Регулярен израз" data-language-autonym="Български" data-language-local-name="불가리아어" class="interlanguage-link-target"><span>Български</span></a></li> <li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://bn.wikipedia.org/wiki/%25E0%25A6%25B0%25E0%25A7%2587%25E0%25A6%2597%25E0%25A7%2581%25E0%25A6%25B2%25E0%25A6%25BE%25E0%25A6%25B0_%25E0%25A6%258F%25E0%25A6%2595%25E0%25A7%258D%25E0%25A6%25B8%25E0%25A6%25AA%25E0%25A7%258D%25E0%25A6%25B0%25E0%25A7%2587%25E0%25A6%25B6%25E0%25A6%25A8" title="রেগুলার এক্সপ্রেশন – 벵골어" lang="bn" hreflang="bn" data-title="রেগুলার এক্সপ্রেশন" data-language-autonym="বাংলা" data-language-local-name="벵골어" class="interlanguage-link-target"><span>বাংলা</span></a></li> <li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ca.wikipedia.org/wiki/Expressi%25C3%25B3_regular" title="Expressió regular – 카탈로니아어" lang="ca" hreflang="ca" data-title="Expressió regular" data-language-autonym="Català" data-language-local-name="카탈로니아어" class="interlanguage-link-target"><span>Català</span></a></li> <li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://cs.wikipedia.org/wiki/Regul%25C3%25A1rn%25C3%25AD_v%25C3%25BDraz" title="Regulární výraz – 체코어" lang="cs" hreflang="cs" data-title="Regulární výraz" data-language-autonym="Čeština" data-language-local-name="체코어" class="interlanguage-link-target"><span>Čeština</span></a></li> <li class="interlanguage-link interwiki-da mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://da.wikipedia.org/wiki/Regul%25C3%25A6rt_udtryk" title="Regulært udtryk – 덴마크어" lang="da" hreflang="da" data-title="Regulært udtryk" data-language-autonym="Dansk" data-language-local-name="덴마크어" class="interlanguage-link-target"><span>Dansk</span></a></li> <li class="interlanguage-link interwiki-de mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://de.wikipedia.org/wiki/Regul%25C3%25A4rer_Ausdruck" title="Regulärer Ausdruck – 독일어" lang="de" hreflang="de" data-title="Regulärer Ausdruck" data-language-autonym="Deutsch" data-language-local-name="독일어" class="interlanguage-link-target"><span>Deutsch</span></a></li> <li class="interlanguage-link interwiki-el mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://el.wikipedia.org/wiki/%25CE%259A%25CE%25B1%25CE%25BD%25CE%25BF%25CE%25BD%25CE%25B9%25CE%25BA%25CE%25AE_%25CE%25AD%25CE%25BA%25CF%2586%25CF%2581%25CE%25B1%25CF%2583%25CE%25B7" title="Κανονική έκφραση – 그리스어" lang="el" hreflang="el" data-title="Κανονική έκφραση" data-language-autonym="Ελληνικά" data-language-local-name="그리스어" class="interlanguage-link-target"><span>Ελληνικά</span></a></li> <li class="interlanguage-link interwiki-en mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://en.wikipedia.org/wiki/Regular_expression" title="Regular expression – 영어" lang="en" hreflang="en" data-title="Regular expression" data-language-autonym="English" data-language-local-name="영어" class="interlanguage-link-target"><span>English</span></a></li> <li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://eo.wikipedia.org/wiki/Regula_esprimo" title="Regula esprimo – 에스페란토어" lang="eo" hreflang="eo" data-title="Regula esprimo" data-language-autonym="Esperanto" data-language-local-name="에스페란토어" class="interlanguage-link-target"><span>Esperanto</span></a></li> <li class="interlanguage-link interwiki-es mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://es.wikipedia.org/wiki/Expresi%25C3%25B3n_regular" title="Expresión regular – 스페인어" lang="es" hreflang="es" data-title="Expresión regular" data-language-autonym="Español" data-language-local-name="스페인어" class="interlanguage-link-target"><span>Español</span></a></li> <li class="interlanguage-link interwiki-et mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://et.wikipedia.org/wiki/Regulaaravaldis" title="Regulaaravaldis – 에스토니아어" lang="et" hreflang="et" data-title="Regulaaravaldis" data-language-autonym="Eesti" data-language-local-name="에스토니아어" class="interlanguage-link-target"><span>Eesti</span></a></li> <li class="interlanguage-link interwiki-eu mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://eu.wikipedia.org/wiki/Adierazpen_erregular" title="Adierazpen erregular – 바스크어" lang="eu" hreflang="eu" data-title="Adierazpen erregular" data-language-autonym="Euskara" data-language-local-name="바스크어" class="interlanguage-link-target"><span>Euskara</span></a></li> <li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://fa.wikipedia.org/wiki/%25D8%25B9%25D8%25A8%25D8%25A7%25D8%25B1%25D8%25AA_%25D8%25A8%25D8%25A7%25D9%2582%25D8%25A7%25D8%25B9%25D8%25AF%25D9%2587" title="عبارت باقاعده – 페르시아어" lang="fa" hreflang="fa" data-title="عبارت باقاعده" data-language-autonym="فارسی" data-language-local-name="페르시아어" class="interlanguage-link-target"><span>فارسی</span></a></li> <li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://fi.wikipedia.org/wiki/S%25C3%25A4%25C3%25A4nn%25C3%25B6llinen_lauseke" title="Säännöllinen lauseke – 핀란드어" lang="fi" hreflang="fi" data-title="Säännöllinen lauseke" data-language-autonym="Suomi" data-language-local-name="핀란드어" class="interlanguage-link-target"><span>Suomi</span></a></li> <li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://fr.wikipedia.org/wiki/Expression_r%25C3%25A9guli%25C3%25A8re" title="Expression régulière – 프랑스어" lang="fr" hreflang="fr" data-title="Expression régulière" data-language-autonym="Français" data-language-local-name="프랑스어" class="interlanguage-link-target"><span>Français</span></a></li> <li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://gl.wikipedia.org/wiki/Expresi%25C3%25B3n_regular" title="Expresión regular – 갈리시아어" lang="gl" hreflang="gl" data-title="Expresión regular" data-language-autonym="Galego" data-language-local-name="갈리시아어" class="interlanguage-link-target"><span>Galego</span></a></li> <li class="interlanguage-link interwiki-he mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://he.wikipedia.org/wiki/%25D7%2591%25D7%2599%25D7%2598%25D7%2595%25D7%2599_%25D7%25A8%25D7%2592%25D7%2595%25D7%259C%25D7%25A8%25D7%2599" title="ביטוי רגולרי – 히브리어" lang="he" hreflang="he" data-title="ביטוי רגולרי" data-language-autonym="עברית" data-language-local-name="히브리어" class="interlanguage-link-target"><span>עברית</span></a></li> <li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://hi.wikipedia.org/wiki/%25E0%25A4%25B0%25E0%25A5%2587%25E0%25A4%2597%25E0%25A5%258D%25E0%25A4%25AF%25E0%25A5%2581%25E0%25A4%25B2%25E0%25A4%25B0_%25E0%25A4%258D%25E0%25A4%2595%25E0%25A5%258D%25E0%25A4%25B8%25E0%25A4%25AA%25E0%25A5%258D%25E0%25A4%25B0%25E0%25A5%2588%25E0%25A4%25B6%25E0%25A4%25A8" title="रेग्युलर ऍक्सप्रैशन – 힌디어" lang="hi" hreflang="hi" data-title="रेग्युलर ऍक्सप्रैशन" data-language-autonym="हिन्दी" data-language-local-name="힌디어" class="interlanguage-link-target"><span>हिन्दी</span></a></li> <li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://hr.wikipedia.org/wiki/Regularni_izraz" title="Regularni izraz – 크로아티아어" lang="hr" hreflang="hr" data-title="Regularni izraz" data-language-autonym="Hrvatski" data-language-local-name="크로아티아어" class="interlanguage-link-target"><span>Hrvatski</span></a></li> <li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://hu.wikipedia.org/wiki/Regul%25C3%25A1ris_kifejez%25C3%25A9s" title="Reguláris kifejezés – 헝가리어" lang="hu" hreflang="hu" data-title="Reguláris kifejezés" data-language-autonym="Magyar" data-language-local-name="헝가리어" class="interlanguage-link-target"><span>Magyar</span></a></li> <li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://hy.wikipedia.org/wiki/%25D4%25BF%25D5%25A1%25D5%25B6%25D5%25B8%25D5%25B6%25D5%25A1%25D5%25BE%25D5%25B8%25D6%2580_%25D5%25A1%25D6%2580%25D5%25BF%25D5%25A1%25D5%25B0%25D5%25A1%25D5%25B5%25D5%25BF%25D5%25B8%25D6%2582%25D5%25A9%25D5%25B5%25D5%25B8%25D6%2582%25D5%25B6%25D5%25B6%25D5%25A5%25D6%2580" title="Կանոնավոր արտահայտություններ – 아르메니아어" lang="hy" hreflang="hy" data-title="Կանոնավոր արտահայտություններ" data-language-autonym="Հայերեն" data-language-local-name="아르메니아어" class="interlanguage-link-target"><span>Հայերեն</span></a></li> <li class="interlanguage-link interwiki-id mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://id.wikipedia.org/wiki/Ekspresi_reguler" title="Ekspresi reguler – 인도네시아어" lang="id" hreflang="id" data-title="Ekspresi reguler" data-language-autonym="Bahasa Indonesia" data-language-local-name="인도네시아어" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li> <li class="interlanguage-link interwiki-is mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://is.wikipedia.org/wiki/Regluleg_seg%25C3%25B0" title="Regluleg segð – 아이슬란드어" lang="is" hreflang="is" data-title="Regluleg segð" data-language-autonym="Íslenska" data-language-local-name="아이슬란드어" class="interlanguage-link-target"><span>Íslenska</span></a></li> <li class="interlanguage-link interwiki-it mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://it.wikipedia.org/wiki/Espressione_regolare" title="Espressione regolare – 이탈리아어" lang="it" hreflang="it" data-title="Espressione regolare" data-language-autonym="Italiano" data-language-local-name="이탈리아어" class="interlanguage-link-target"><span>Italiano</span></a></li> <li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ja.wikipedia.org/wiki/%25E6%25AD%25A3%25E8%25A6%258F%25E8%25A1%25A8%25E7%258F%25BE" title="正規表現 – 일본어" lang="ja" hreflang="ja" data-title="正規表現" data-language-autonym="日本語" data-language-local-name="일본어" class="interlanguage-link-target"><span>日本語</span></a></li> <li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ka.wikipedia.org/wiki/%25E1%2583%25A0%25E1%2583%2594%25E1%2583%2592%25E1%2583%25A3%25E1%2583%259A%25E1%2583%2590%25E1%2583%25A0%25E1%2583%25A3%25E1%2583%259A%25E1%2583%2598_%25E1%2583%2592%25E1%2583%2590%25E1%2583%259B%25E1%2583%259D%25E1%2583%25A1%25E1%2583%2590%25E1%2583%25AE%25E1%2583%25A3%25E1%2583%259A%25E1%2583%2594%25E1%2583%2591%25E1%2583%2590" title="რეგულარული გამოსახულება – 조지아어" lang="ka" hreflang="ka" data-title="რეგულარული გამოსახულება" data-language-autonym="ქართული" data-language-local-name="조지아어" class="interlanguage-link-target"><span>ქართული</span></a></li> <li class="interlanguage-link interwiki-ky mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ky.wikipedia.org/wiki/%25D0%25A0%25D0%25B5%25D0%25B3%25D1%2583%25D0%25BB%25D1%258F%25D1%2580%25D0%25B4%25D1%258B%25D0%25BA_%25D1%2582%25D1%2583%25D1%258E%25D0%25BD%25D1%2582%25D0%25BC%25D0%25B0" title="Регулярдык туюнтма – 키르기스어" lang="ky" hreflang="ky" data-title="Регулярдык туюнтма" data-language-autonym="Кыргызча" data-language-local-name="키르기스어" class="interlanguage-link-target"><span>Кыргызча</span></a></li> <li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://lv.wikipedia.org/wiki/Regul%25C4%2581r%25C4%2581_izteiksme" title="Regulārā izteiksme – 라트비아어" lang="lv" hreflang="lv" data-title="Regulārā izteiksme" data-language-autonym="Latviešu" data-language-local-name="라트비아어" class="interlanguage-link-target"><span>Latviešu</span></a></li> <li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://mk.wikipedia.org/wiki/%25D0%25A0%25D0%25B5%25D0%25B3%25D1%2583%25D0%25BB%25D0%25B0%25D1%2580%25D0%25B5%25D0%25BD_%25D0%25B8%25D0%25B7%25D1%2580%25D0%25B0%25D0%25B7" title="Регуларен израз – 마케도니아어" lang="mk" hreflang="mk" data-title="Регуларен израз" data-language-autonym="Македонски" data-language-local-name="마케도니아어" class="interlanguage-link-target"><span>Македонски</span></a></li> <li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ml.wikipedia.org/wiki/%25E0%25B4%25B1%25E0%25B5%2586%25E0%25B4%2597%25E0%25B5%2581%25E0%25B4%25B2%25E0%25B5%25BC_%25E0%25B4%258E%25E0%25B4%2595%25E0%25B5%258D%25E0%25B4%25B8%25E0%25B5%258D%25E0%25B4%25AA%25E0%25B5%258D%25E0%25B4%25B0%25E0%25B4%25B7%25E0%25B4%25A8%25E0%25B5%2581%25E0%25B4%2595%25E0%25B5%25BE" title="റെഗുലർ എക്സ്പ്രഷനുകൾ – 말라얄람어" lang="ml" hreflang="ml" data-title="റെഗുലർ എക്സ്പ്രഷനുകൾ" data-language-autonym="മലയാളം" data-language-local-name="말라얄람어" class="interlanguage-link-target"><span>മലയാളം</span></a></li> <li class="interlanguage-link interwiki-mwl mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://mwl.wikipedia.org/wiki/Spresson_Regular" title="Spresson Regular – 미란데어" lang="mwl" hreflang="mwl" data-title="Spresson Regular" data-language-autonym="Mirandés" data-language-local-name="미란데어" class="interlanguage-link-target"><span>Mirandés</span></a></li> <li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://nl.wikipedia.org/wiki/Reguliere_expressie" title="Reguliere expressie – 네덜란드어" lang="nl" hreflang="nl" data-title="Reguliere expressie" data-language-autonym="Nederlands" data-language-local-name="네덜란드어" class="interlanguage-link-target"><span>Nederlands</span></a></li> <li class="interlanguage-link interwiki-no mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://no.wikipedia.org/wiki/Regul%25C3%25A6rt_uttrykk" title="Regulært uttrykk – 노르웨이어(보크말)" lang="nb" hreflang="nb" data-title="Regulært uttrykk" data-language-autonym="Norsk bokmål" data-language-local-name="노르웨이어(보크말)" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li> <li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://pl.wikipedia.org/wiki/Wyra%25C5%25BCenie_regularne" title="Wyrażenie regularne – 폴란드어" lang="pl" hreflang="pl" data-title="Wyrażenie regularne" data-language-autonym="Polski" data-language-local-name="폴란드어" class="interlanguage-link-target"><span>Polski</span></a></li> <li class="interlanguage-link interwiki-pnb mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://pnb.wikipedia.org/wiki/%25D8%25B1%25DB%258C%25D8%25AC%25DB%258C%25DA%25A9%25D8%25B3" title="ریجیکس – Western Punjabi" lang="pnb" hreflang="pnb" data-title="ریجیکس" data-language-autonym="پنجابی" data-language-local-name="Western Punjabi" class="interlanguage-link-target"><span>پنجابی</span></a></li> <li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://pt.wikipedia.org/wiki/Express%25C3%25A3o_regular" title="Expressão regular – 포르투갈어" lang="pt" hreflang="pt" data-title="Expressão regular" data-language-autonym="Português" data-language-local-name="포르투갈어" class="interlanguage-link-target"><span>Português</span></a></li> <li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ro.wikipedia.org/wiki/Expresie_regulat%25C4%2583" title="Expresie regulată – 루마니아어" lang="ro" hreflang="ro" data-title="Expresie regulată" data-language-autonym="Română" data-language-local-name="루마니아어" class="interlanguage-link-target"><span>Română</span></a></li> <li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ru.wikipedia.org/wiki/%25D0%25A0%25D0%25B5%25D0%25B3%25D1%2583%25D0%25BB%25D1%258F%25D1%2580%25D0%25BD%25D1%258B%25D0%25B5_%25D0%25B2%25D1%258B%25D1%2580%25D0%25B0%25D0%25B6%25D0%25B5%25D0%25BD%25D0%25B8%25D1%258F" title="Регулярные выражения – 러시아어" lang="ru" hreflang="ru" data-title="Регулярные выражения" data-language-autonym="Русский" data-language-local-name="러시아어" class="interlanguage-link-target"><span>Русский</span></a></li> <li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://simple.wikipedia.org/wiki/Regular_expression" title="Regular expression – Simple English" lang="en-simple" hreflang="en-simple" data-title="Regular expression" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li> <li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://sk.wikipedia.org/wiki/Regul%25C3%25A1rny_v%25C3%25BDraz" title="Regulárny výraz – 슬로바키아어" lang="sk" hreflang="sk" data-title="Regulárny výraz" data-language-autonym="Slovenčina" data-language-local-name="슬로바키아어" class="interlanguage-link-target"><span>Slovenčina</span></a></li> <li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://sl.wikipedia.org/wiki/Regularni_izraz" title="Regularni izraz – 슬로베니아어" lang="sl" hreflang="sl" data-title="Regularni izraz" data-language-autonym="Slovenščina" data-language-local-name="슬로베니아어" class="interlanguage-link-target"><span>Slovenščina</span></a></li> <li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://sq.wikipedia.org/wiki/Shprehje_e_rregullt" title="Shprehje e rregullt – 알바니아어" lang="sq" hreflang="sq" data-title="Shprehje e rregullt" data-language-autonym="Shqip" data-language-local-name="알바니아어" class="interlanguage-link-target"><span>Shqip</span></a></li> <li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://sr.wikipedia.org/wiki/Regularni_izraz" title="Regularni izraz – 세르비아어" lang="sr" hreflang="sr" data-title="Regularni izraz" data-language-autonym="Српски / srpski" data-language-local-name="세르비아어" class="interlanguage-link-target"><span>Српски / srpski</span></a></li> <li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://sv.wikipedia.org/wiki/Regulj%25C3%25A4ra_uttryck" title="Reguljära uttryck – 스웨덴어" lang="sv" hreflang="sv" data-title="Reguljära uttryck" data-language-autonym="Svenska" data-language-local-name="스웨덴어" class="interlanguage-link-target"><span>Svenska</span></a></li> <li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ta.wikipedia.org/wiki/%25E0%25AE%259A%25E0%25AF%2581%25E0%25AE%25B0%25E0%25AF%2581%25E0%25AE%2599%25E0%25AF%258D%25E0%25AE%2595%25E0%25AF%2581%25E0%25AE%25B1%25E0%25AE%25BF%25E0%25AE%25A4%25E0%25AF%258D%25E0%25AE%25A4%25E0%25AF%258A%25E0%25AE%259F%25E0%25AE%25B0%25E0%25AF%258D" title="சுருங்குறித்தொடர் – 타밀어" lang="ta" hreflang="ta" data-title="சுருங்குறித்தொடர்" data-language-autonym="தமிழ்" data-language-local-name="타밀어" class="interlanguage-link-target"><span>தமிழ்</span></a></li> <li class="interlanguage-link interwiki-th mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://th.wikipedia.org/wiki/%25E0%25B8%2599%25E0%25B8%25B4%25E0%25B8%259E%25E0%25B8%2588%25E0%25B8%2599%25E0%25B9%258C%25E0%25B8%259B%25E0%25B8%25A3%25E0%25B8%2581%25E0%25B8%2595%25E0%25B8%25B4" title="นิพจน์ปรกติ – 태국어" lang="th" hreflang="th" data-title="นิพจน์ปรกติ" data-language-autonym="ไทย" data-language-local-name="태국어" class="interlanguage-link-target"><span>ไทย</span></a></li> <li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://tr.wikipedia.org/wiki/D%25C3%25BCzenli_ifade" title="Düzenli ifade – 터키어" lang="tr" hreflang="tr" data-title="Düzenli ifade" data-language-autonym="Türkçe" data-language-local-name="터키어" class="interlanguage-link-target"><span>Türkçe</span></a></li> <li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://uk.wikipedia.org/wiki/%25D0%25A0%25D0%25B5%25D0%25B3%25D1%2583%25D0%25BB%25D1%258F%25D1%2580%25D0%25BD%25D0%25B8%25D0%25B9_%25D0%25B2%25D0%25B8%25D1%2580%25D0%25B0%25D0%25B7" title="Регулярний вираз – 우크라이나어" lang="uk" hreflang="uk" data-title="Регулярний вираз" data-language-autonym="Українська" data-language-local-name="우크라이나어" class="interlanguage-link-target"><span>Українська</span></a></li> <li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ur.wikipedia.org/wiki/%25D8%25B1%25DB%258C%25D8%25AC%25DB%258C%25DA%25A9%25D8%25B3" title="ریجیکس – 우르두어" lang="ur" hreflang="ur" data-title="ریجیکس" data-language-autonym="اردو" data-language-local-name="우르두어" class="interlanguage-link-target"><span>اردو</span></a></li> <li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://vi.wikipedia.org/wiki/Bi%25E1%25BB%2583u_th%25E1%25BB%25A9c_ch%25C3%25ADnh_quy" title="Biểu thức chính quy – 베트남어" lang="vi" hreflang="vi" data-title="Biểu thức chính quy" data-language-autonym="Tiếng Việt" data-language-local-name="베트남어" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li> <li class="interlanguage-link interwiki-wa mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://wa.wikipedia.org/wiki/Er%25C3%25AEl%25C3%25AAye_ratourneure" title="Erîlêye ratourneure – 왈론어" lang="wa" hreflang="wa" data-title="Erîlêye ratourneure" data-language-autonym="Walon" data-language-local-name="왈론어" class="interlanguage-link-target"><span>Walon</span></a></li> <li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://wuu.wikipedia.org/wiki/%25E6%25AD%25A3%25E5%2588%2599%25E8%25A1%25A8%25E8%25BE%25BE%25E5%25BC%258F" title="正则表达式 – 우어" lang="wuu" hreflang="wuu" data-title="正则表达式" data-language-autonym="吴语" data-language-local-name="우어" class="interlanguage-link-target"><span>吴语</span></a></li> <li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://zh.wikipedia.org/wiki/%25E6%25AD%25A3%25E5%2588%2599%25E8%25A1%25A8%25E8%25BE%25BE%25E5%25BC%258F" title="正则表达式 – 중국어" lang="zh" hreflang="zh" data-title="正则表达式" data-language-autonym="中文" data-language-local-name="중국어" class="interlanguage-link-target"><span>中文</span></a></li> <li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://zh-yue.wikipedia.org/wiki/%25E6%25AD%25A3%25E5%2589%2587%25E8%25A1%25A8%25E9%2581%2594%25E5%25BC%258F" title="正則表達式 – 광둥어" lang="yue" hreflang="yue" data-title="正則表達式" data-language-autonym="粵語" data-language-local-name="광둥어" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> </section> </div> <div class="minerva-footer-logo"> <img src="/static/images/mobile/copyright/wikipedia-wordmark-ko.svg" alt="위키백과" width="120" height="28" style="width: 7.5em; height: 1.75em;"> </div> <ul id="footer-info" class="footer-info hlist hlist-separated"> <li id="footer-info-lastmod">이 문서는 2024년 6월 30일 (일) 22:58에 마지막으로 편집되었습니다.</li> <li id="footer-info-copyright">별도로 명시하지 않은 경우, 내용은 <a class="external" rel="nofollow" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://creativecommons.org/licenses/by-sa/4.0/deed.ko">CC BY-SA 4.0</a>에 따라 사용할 수 있습니다.</li> </ul> <ul id="footer-places" class="footer-places hlist hlist-separated"> <li id="footer-places-privacy"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">개인정보처리방침</a></li> <li id="footer-places-about"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EC%86%8C%EA%B0%9C?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">위키백과 소개</a></li> <li id="footer-places-disclaimers"><a href="https://ko-m-wikipedia-org.translate.goog/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%A9%B4%EC%B1%85_%EC%A1%B0%ED%95%AD?_x_tr_sl=auto&amp;_x_tr_tl=en&amp;_x_tr_hl=en-GB">면책 조항</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">행동 강령</a></li> <li id="footer-places-developers"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://developer.wikimedia.org">개발자</a></li> <li id="footer-places-statslink"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://stats.wikimedia.org/%23/ko.wikipedia.org">통계</a></li> <li id="footer-places-cookiestatement"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">쿠키 정책</a></li> <li id="footer-places-terms-use"><a href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://foundation.m.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/ko">이용 약관</a></li> <li id="footer-places-desktop-toggle"><a id="mw-mf-display-toggle" href="https://translate.google.com/website?sl=auto&amp;tl=en&amp;hl=en-GB&amp;u=https://ko.wikipedia.org/w/index.php?title%3D%25EC%25A0%2595%25EA%25B7%259C_%25ED%2591%259C%25ED%2598%2584%25EC%258B%259D%26mobileaction%3Dtoggle_view_desktop" data-event-name="switch_to_desktop">데스크톱</a></li> </ul> </div> </footer> </div> </div> <div class="mw-notification-area" data-mw="interface"></div><!-- v:8.3.1 --> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5f58cd8b6-bfc49","wgBackendResponseTime":172,"wgPageParseReport":{"limitreport":{"cputime":"0.504","walltime":"0.713","ppvisitednodes":{"value":2314,"limit":1000000},"postexpandincludesize":{"value":59104,"limit":2097152},"templateargumentsize":{"value":11503,"limit":2097152},"expansiondepth":{"value":14,"limit":100},"expensivefunctioncount":{"value":53,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":50230,"limit":5000000},"entityaccesscount":{"value":1,"limit":400},"timingprofile":["100.00% 587.795 1 -total"," 31.98% 187.966 1 틀:위키데이터_속성_추적"," 18.79% 110.465 5 틀:둘러보기_상자"," 18.45% 108.455 1 틀:각주"," 18.43% 108.340 1 틀:형식_언어_및_형식_문법"," 17.66% 103.824 1 틀:둘러보기_상자_다단"," 13.24% 77.837 3 틀:서적_인용"," 5.78% 33.977 1 틀:위키공용분류-줄"," 5.41% 31.800 1 틀:전거_통제"," 5.25% 30.844 1 틀:Sister-inline"]},"scribunto":{"limitreport-timeusage":{"value":"0.198","limit":"10.000"},"limitreport-memusage":{"value":4785794,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-7c4dcdbb87-f2cts","timestamp":"20241203122201","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"\uc815\uaddc \ud45c\ud604\uc2dd","url":"https:\/\/ko.wikipedia.org\/wiki\/%EC%A0%95%EA%B7%9C_%ED%91%9C%ED%98%84%EC%8B%9D","sameAs":"http:\/\/www.wikidata.org\/entity\/Q185612","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q185612","author":{"@type":"Organization","name":"\uc704\ud0a4\ubbf8\ub514\uc5b4 \ud504\ub85c\uc81d\ud2b8 \uae30\uc5ec\uc790"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2006-08-02T05:46:39Z","dateModified":"2024-06-30T13:58:48Z","image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/2\/23\/The_river_effect_in_justified_text.jpg","headline":"\uc9d1\ud569\uc744 \ud45c\ud604\ud558\ub294 \ub370 \uc0ac\uc6a9\ud558\ub294 \ud615\uc2dd \uc5b8\uc5b4"}</script> <script>(window.NORLQ=window.NORLQ||[]).push(function(){var ns,i,p,img;ns=document.getElementsByTagName('noscript');for(i=0;i<ns.length;i++){p=ns[i].nextSibling;if(p&&p.className&&p.className.indexOf('lazy-image-placeholder')>-1){img=document.createElement('img');img.setAttribute('src',p.getAttribute('data-src'));img.setAttribute('width',p.getAttribute('data-width'));img.setAttribute('height',p.getAttribute('data-height'));img.setAttribute('alt',p.getAttribute('data-alt'));p.parentNode.replaceChild(img,p);}}});</script> <script>function gtElInit() {var lib = new google.translate.TranslateService();lib.translatePage('ko', 'en', function () {});}</script> <script src="https://translate.google.com/translate_a/element.js?cb=gtElInit&amp;hl=en-GB&amp;client=wt" type="text/javascript"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10