CINXE.COM

regex101: build, test, and debug regex

<!DOCTYPE html> <html lang="en" class="notranslate" translate="no" data-theme="light"> <head> <meta charset="UTF-8"> <meta name="google" content="notranslate" /> <meta name="title" content="regex101"> <meta name="description" content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust."> <meta name="author" content="Firas Dib"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preload" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Source+Code+Pro:wght@400;500;700&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'"> <link href="https://regex101.com" rel="home" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="default"> <meta name="mobile-web-app-capable" content="yes"> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <link rel="apple-touch-icon" sizes="57x57" href="/static/assets/icon-57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/static/assets/icon-60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/static/assets/icon-72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/static/assets/icon-76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/static/assets/icon-114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/static/assets/icon-120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/static/assets/icon-144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/static/assets/icon-152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/static/assets/icon-180.png"> <link rel="shortcut icon" href="/static/assets/favicon.ico" type="image/x-icon"> <link rel="icon" type="image/png" sizes="16x16" href="/static/assets/icon-16.png"> <link rel="icon" type="image/png" sizes="32x32" href="/static/assets/icon-32.png"> <link rel="icon" type="image/png" sizes="96x96" href="/static/assets/icon-96.png"> <link rel="icon" type="image/png" sizes="192x192" href="/static/assets/icon-192.png"> <link rel="manifest" href="/static/assets/manifest.webmanifest"> <meta name="theme-color" content="#3366a4"> <meta name="apple-mobile-web-app-title" content="regex101: build, test, and debug regex" /> <meta name="application-name" content="regex101: build, test, and debug regex" /> <meta name="format-detection" content="telephone=no"> <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/4__iPhone_SE__iPod_touch_5th_generation_and_later_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/12.9__iPad_Pro_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/11__iPad_Pro__10.5__iPad_Pro_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_14_Pro_Max_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/11__iPad_Pro__10.5__iPad_Pro_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_14_Pro_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/8.3__iPad_Mini_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/10.2__iPad_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_11_Pro_Max__iPhone_XS_Max_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/iPhone_11__iPhone_XR_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/iPhone_11__iPhone_XR_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_11_Pro_Max__iPhone_XS_Max_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_14_Pro_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/10.5__iPad_Air_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/static/assets/iPhone_14_Pro_Max_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/10.9__iPad_Air_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/10.2__iPad_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/4__iPhone_SE__iPod_touch_5th_generation_and_later_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/12.9__iPad_Pro_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/10.9__iPad_Air_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/8.3__iPad_Mini_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/static/assets/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_portrait.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/static/assets/10.5__iPad_Air_landscape.png"> <link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/static/assets/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_landscape.png"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> <meta name="keywords" content="regex,regex tester,regular expression,debugger,pcre,php,golang,java,javascript,python,.net,c#,rust"> <meta property="twitter:card" content="summary_large_image"> <meta property="twitter:site" content="@regex101"> <meta property="twitter:title" content="regex101: build, test, and debug regex"> <meta property="twitter:description" content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust."> <meta property="twitter:creator" content="@regex101"> <meta property="twitter:image" content="https://regex101.com/preview/r/vkijKf/1/"> <meta property="twitter:domain" content="regex101.com"> <meta property="og:image" content="https://regex101.com/preview/r/vkijKf/1/"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> <meta property="og:title" content="regex101: build, test, and debug regex"> <meta property="og:description" content="Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust."> <meta property="og:url" content="https://regex101.com/"> <meta property="og:site_name" content="regex101"> <meta property="og:type" content="website"> <script>var e;document.addEventListener("readystatechange",e=function(t){if("interactive"===t.target.readyState){document.removeEventListener("readystatechange",e);try{var a,n,r,o,d=JSON.parse((null===(a=JSON.parse(null===(n=localStorage)||void 0===n?void 0:n.getItem("persist:settings")))||void 0===a?void 0:a.theme)||null),l=null!==(r=window)&&void 0!==r&&null!==(o=r.matchMedia)&&void 0!==o&&null!==(o=o.call(r,"(prefers-color-scheme: dark)"))&&void 0!==o&&o.matches?"dark":"light";document.documentElement.setAttribute("data-theme",d&&"AUTO"!==d?d:l)}catch(e){console.error("Unable to set theme",e)}}});</script> <script defer> (function(){var a="Worker"in window,b="Promise"in window,c="object"===typeof WebAssembly&&"function"===typeof WebAssembly.instantiate;a&&b&&c||(window.__LEGACY__=!0,window.addEventListener("load",function(){document.body.innerHTML='<div style="padding: 60px; max-width: 600px;margin: 0 auto; text-align: center; font-size: 20px; line-height: 1.5;"><div><p>Unfortunately it seems your browser does not meet the criteria to properly render and utilize this website. You need a browser with support for web workers and Web Assembly.</p><a href="http://browsehappy.com/" style="color: blue;">Please upgrade your browser and come back</a></div><p><strong>Note: if you\'re running a newer version of Edge, and still getting this message, check your security settings as they can be preventing webassembly from running.</strong></p><p><strong>Debug results:</strong> Worker='+a+", Promise="+b+", WASM="+c+"</strong></p></div>"},{once:!0}))})(); </script> <script fetchpriority="low" defer data-domain="regex101.com" src="https://analytics.regex101.com/js/plausible.js"></script> <title>regex101: build, test, and debug regex</title> <script> window.__INITIAL_STATE__ = '%7B%22api%22%3A%7B%22queries%22%3A%7B%22getRegex(%7B%5C%22permalinkFragment%5C%22%3A%5C%22vkijKf%5C%22%2C%5C%22version%5C%22%3A%5C%221%5C%22%7D)%22%3A%7B%22status%22%3A%22fulfilled%22%2C%22endpointName%22%3A%22getRegex%22%2C%22requestId%22%3A%22bCTwaXRNNjql4afRp4MAf%22%2C%22originalArgs%22%3A%7B%22permalinkFragment%22%3A%22vkijKf%22%2C%22version%22%3A%221%22%7D%2C%22startedTimeStamp%22%3A1732664264029%2C%22data%22%3A%7B%22permalinkFragment%22%3A%22vkijKf%22%2C%22version%22%3A1%2C%22dateCreated%22%3A%222019-07-18T09%3A10%3A40.000Z%22%2C%22regex%22%3A%22%5E(0%7C%5B1-9%5D%5C%5Cd*)%5C%5C.(0%7C%5B1-9%5D%5C%5Cd*)%5C%5C.(0%7C%5B1-9%5D%5C%5Cd*)(%3F%3A-((%3F%3A0%7C%5B1-9%5D%5C%5Cd*%7C%5C%5Cd*%5Ba-zA-Z-%5D%5B0-9a-zA-Z-%5D*)(%3F%3A%5C%5C.(%3F%3A0%7C%5B1-9%5D%5C%5Cd*%7C%5C%5Cd*%5Ba-zA-Z-%5D%5B0-9a-zA-Z-%5D*))*))%3F(%3F%3A%5C%5C%2B(%5B0-9a-zA-Z-%5D%2B(%3F%3A%5C%5C.%5B0-9a-zA-Z-%5D%2B)*))%3F%24%22%2C%22testString%22%3A%22Valid%20Semantic%20Versions%5Cn%5Cn0.0.4%5Cn1.2.3%5Cn10.20.30%5Cn1.1.2-prerelease%2Bmeta%5Cn1.1.2%2Bmeta%5Cn1.1.2%2Bmeta-valid%5Cn1.0.0-alpha%5Cn1.0.0-beta%5Cn1.0.0-alpha.beta%5Cn1.0.0-alpha.beta.1%5Cn1.0.0-alpha.1%5Cn1.0.0-alpha0.valid%5Cn1.0.0-alpha.0valid%5Cn1.0.0-alpha-a.b-c-somethinglong%2Bbuild.1-aef.1-its-okay%5Cn1.0.0-rc.1%2Bbuild.1%5Cn2.0.0-rc.1%2Bbuild.123%5Cn1.2.3-beta%5Cn10.2.3-DEV-SNAPSHOT%5Cn1.2.3-SNAPSHOT-123%5Cn1.0.0%5Cn2.0.0%5Cn1.1.7%5Cn2.0.0%2Bbuild.1848%5Cn2.0.1-alpha.1227%5Cn1.0.0-alpha%2Bbeta%5Cn1.2.3----RC-SNAPSHOT.12.9.1--.12%2B788%5Cn1.2.3----R-S.12.9.1--.12%2Bmeta%5Cn1.2.3----RC-SNAPSHOT.12.9.1--.12%5Cn1.0.0%2B0.build.1-rc.10000aaa-kk-0.1%5Cn99999999999999999999999.999999999999999999.99999999999999999%5Cn1.0.0-0A.is.legal%5Cn%5Cn%5CnInvalid%20Semantic%20Versions%5Cn%5Cn1%5Cn1.2%5Cn1.2.3-0123%5Cn1.2.3-0123.0123%5Cn1.1.2%2B.123%5Cn%2Binvalid%5Cn-invalid%5Cn-invalid%2Binvalid%5Cn-invalid.01%5Cnalpha%5Cnalpha.beta%5Cnalpha.beta.1%5Cnalpha.1%5Cnalpha%2Bbeta%5Cnalpha_beta%5Cnalpha.%5Cnalpha..%5Cnbeta%5Cn1.0.0-alpha_beta%5Cn-alpha.%5Cn1.0.0-alpha..%5Cn1.0.0-alpha..1%5Cn1.0.0-alpha...1%5Cn1.0.0-alpha....1%5Cn1.0.0-alpha.....1%5Cn1.0.0-alpha......1%5Cn1.0.0-alpha.......1%5Cn01.1.1%5Cn1.01.1%5Cn1.1.01%5Cn1.2%5Cn1.2.3.DEV%5Cn1.2-SNAPSHOT%5Cn1.2.31.2.3----RC-SNAPSHOT.12.09.1--..12%2B788%5Cn1.2-RC-SNAPSHOT%5Cn-1.0.3-gamma%2Bb7718%5Cn%2Bjustmeta%5Cn9.8.7%2Bmeta%2Bmeta%5Cn9.8.7-whatever%2Bmeta%2Bmeta%5Cn99999999999999999999999.999999999999999999.99999999999999999----RC-SNAPSHOT.12.09.1--------------------------------..12%22%2C%22flags%22%3A%22gm%22%2C%22delimiter%22%3A%22%2F%22%2C%22flavor%22%3A%22javascript%22%2C%22substitution%22%3Anull%2C%22listSubstitution%22%3Anull%2C%22title%22%3Anull%2C%22regexDeleteCode%22%3Anull%2C%22versionDeleteCode%22%3Anull%2C%22isPrivate%22%3A0%2C%22isLocked%22%3A0%2C%22tags%22%3A%5B%5D%2C%22unitTests%22%3A%5B%5D%2C%22isFavorite%22%3Afalse%2C%22isEditable%22%3Atrue%2C%22isOwner%22%3Afalse%2C%22isLibraryEntry%22%3Afalse%7D%2C%22fulfilledTimeStamp%22%3A1732664264051%7D%7D%2C%22mutations%22%3A%7B%7D%2C%22provided%22%3A%7B%22RegexEditor%22%3A%7B%22vkijKf%22%3A%5B%22getRegex(%7B%5C%22permalinkFragment%5C%22%3A%5C%22vkijKf%5C%22%2C%5C%22version%5C%22%3A%5C%221%5C%22%7D)%22%5D%7D%7D%2C%22subscriptions%22%3A%7B%7D%2C%22config%22%3A%7B%22online%22%3Atrue%2C%22focused%22%3Atrue%2C%22middlewareRegistered%22%3Atrue%2C%22refetchOnFocus%22%3Afalse%2C%22refetchOnReconnect%22%3Afalse%2C%22refetchOnMountOrArgChange%22%3Afalse%2C%22keepUnusedDataFor%22%3A60%2C%22reducerPath%22%3A%22api%22%2C%22invalidationBehavior%22%3A%22delayed%22%7D%7D%2C%22miscApi%22%3A%7B%22queries%22%3A%7B%7D%2C%22mutations%22%3A%7B%7D%2C%22provided%22%3A%7B%7D%2C%22subscriptions%22%3A%7B%7D%2C%22config%22%3A%7B%22online%22%3Atrue%2C%22focused%22%3Atrue%2C%22middlewareRegistered%22%3Atrue%2C%22refetchOnFocus%22%3Afalse%2C%22refetchOnReconnect%22%3Afalse%2C%22refetchOnMountOrArgChange%22%3Afalse%2C%22keepUnusedDataFor%22%3A60%2C%22reducerPath%22%3A%22miscApi%22%2C%22invalidationBehavior%22%3A%22delayed%22%7D%7D%2C%22rightSidebar%22%3A%7B%22activeSubsection%22%3A%22EXPLANATION%22%2C%22visibleSections%22%3A%5B%22EXPLANATION%22%2C%22MATCH_INFO%22%2C%22QUICKREF%22%5D%2C%22hiddenSections%22%3A%5B%5D%2C%22width%22%3Anull%7D%2C%22regexEditor%22%3A%7B%22parserState%22%3A%7B%22captureGroupMap%22%3A%7B%7D%2C%22captureGroupCount%22%3A0%2C%22definedSubpatterns%22%3A%5B%5D%2C%22patternError%22%3Afalse%2C%22hasParsed%22%3Afalse%7D%2C%22flavor%22%3A%22javascript%22%2C%22delimiter%22%3A%22%2F%22%2C%22flags%22%3A%22gm%22%2C%22regex%22%3A%22%5E(0%7C%5B1-9%5D%5C%5Cd*)%5C%5C.(0%7C%5B1-9%5D%5C%5Cd*)%5C%5C.(0%7C%5B1-9%5D%5C%5Cd*)(%3F%3A-((%3F%3A0%7C%5B1-9%5D%5C%5Cd*%7C%5C%5Cd*%5Ba-zA-Z-%5D%5B0-9a-zA-Z-%5D*)(%3F%3A%5C%5C.(%3F%3A0%7C%5B1-9%5D%5C%5Cd*%7C%5C%5Cd*%5Ba-zA-Z-%5D%5B0-9a-zA-Z-%5D*))*))%3F(%3F%3A%5C%5C%2B(%5B0-9a-zA-Z-%5D%2B(%3F%3A%5C%5C.%5B0-9a-zA-Z-%5D%2B)*))%3F%24%22%2C%22testString%22%3A%22Valid%20Semantic%20Versions%5Cn%5Cn0.0.4%5Cn1.2.3%5Cn10.20.30%5Cn1.1.2-prerelease%2Bmeta%5Cn1.1.2%2Bmeta%5Cn1.1.2%2Bmeta-valid%5Cn1.0.0-alpha%5Cn1.0.0-beta%5Cn1.0.0-alpha.beta%5Cn1.0.0-alpha.beta.1%5Cn1.0.0-alpha.1%5Cn1.0.0-alpha0.valid%5Cn1.0.0-alpha.0valid%5Cn1.0.0-alpha-a.b-c-somethinglong%2Bbuild.1-aef.1-its-okay%5Cn1.0.0-rc.1%2Bbuild.1%5Cn2.0.0-rc.1%2Bbuild.123%5Cn1.2.3-beta%5Cn10.2.3-DEV-SNAPSHOT%5Cn1.2.3-SNAPSHOT-123%5Cn1.0.0%5Cn2.0.0%5Cn1.1.7%5Cn2.0.0%2Bbuild.1848%5Cn2.0.1-alpha.1227%5Cn1.0.0-alpha%2Bbeta%5Cn1.2.3----RC-SNAPSHOT.12.9.1--.12%2B788%5Cn1.2.3----R-S.12.9.1--.12%2Bmeta%5Cn1.2.3----RC-SNAPSHOT.12.9.1--.12%5Cn1.0.0%2B0.build.1-rc.10000aaa-kk-0.1%5Cn99999999999999999999999.999999999999999999.99999999999999999%5Cn1.0.0-0A.is.legal%5Cn%5Cn%5CnInvalid%20Semantic%20Versions%5Cn%5Cn1%5Cn1.2%5Cn1.2.3-0123%5Cn1.2.3-0123.0123%5Cn1.1.2%2B.123%5Cn%2Binvalid%5Cn-invalid%5Cn-invalid%2Binvalid%5Cn-invalid.01%5Cnalpha%5Cnalpha.beta%5Cnalpha.beta.1%5Cnalpha.1%5Cnalpha%2Bbeta%5Cnalpha_beta%5Cnalpha.%5Cnalpha..%5Cnbeta%5Cn1.0.0-alpha_beta%5Cn-alpha.%5Cn1.0.0-alpha..%5Cn1.0.0-alpha..1%5Cn1.0.0-alpha...1%5Cn1.0.0-alpha....1%5Cn1.0.0-alpha.....1%5Cn1.0.0-alpha......1%5Cn1.0.0-alpha.......1%5Cn01.1.1%5Cn1.01.1%5Cn1.1.01%5Cn1.2%5Cn1.2.3.DEV%5Cn1.2-SNAPSHOT%5Cn1.2.31.2.3----RC-SNAPSHOT.12.09.1--..12%2B788%5Cn1.2-RC-SNAPSHOT%5Cn-1.0.3-gamma%2Bb7718%5Cn%2Bjustmeta%5Cn9.8.7%2Bmeta%2Bmeta%5Cn9.8.7-whatever%2Bmeta%2Bmeta%5Cn99999999999999999999999.999999999999999999.99999999999999999----RC-SNAPSHOT.12.09.1--------------------------------..12%22%2C%22matchResult%22%3A%5B%5D%2C%22error%22%3Anull%2C%22substString%22%3A%22%22%2C%22listSubstString%22%3A%22%22%2C%22hasUnsavedData%22%3Afalse%2C%22selectedEditorType%22%3A%22MATCH%22%2C%22libraryDetails%22%3A%7B%7D%2C%22userDetails%22%3A%7B%22isOwner%22%3Afalse%2C%22isFavorite%22%3Afalse%7D%2C%22permalinkDetails%22%3A%7B%22isLibraryEntry%22%3Afalse%2C%22isPrivate%22%3A0%2C%22isLocked%22%3A0%2C%22fragment%22%3A%22vkijKf%22%2C%22version%22%3A1%2C%22isEditable%22%3Atrue%2C%22regexDeleteCode%22%3Anull%2C%22versionDeleteCode%22%3Anull%2C%22tags%22%3A%5B%5D%2C%22title%22%3Anull%7D%7D%2C%22settings%22%3A%7B%22maxExecutionTime%22%3A2000%2C%22theme%22%3A%22AUTO%22%2C%22nonParticipatingGroups%22%3Afalse%2C%22displayWhitespace%22%3Atrue%2C%22colorizeSyntax%22%3Atrue%2C%22wrapLines%22%3Atrue%2C%22testAreaLineNumbers%22%3Afalse%2C%22regexAreaLineNumbers%22%3Afalse%2C%22language%22%3A%22ENGLISH%22%2C%22editorTooltips%22%3Atrue%2C%22alwaysCollapseLeftSidebar%22%3Afalse%2C%22alwaysCollapseRightSidebar%22%3Afalse%2C%22defaultFlavor%22%3A%22pcre2%22%2C%22showWarningUnsavedProgress%22%3Atrue%2C%22defaultCodeGenLanguage%22%3A%22%22%2C%22calculateRegexSteps%22%3Atrue%2C%22defaultTabBehavior%22%3Atrue%2C%22disableKeyboardShortcuts%22%3Afalse%2C%22lineSeparator%22%3A%22%22%2C%22plainTextExplanation%22%3A%22PLAIN_TEXT_BOTH%22%2C%22leftSidebarBreakpoint%22%3A1080%2C%22rightSidebarBreakpoint%22%3A900%2C%22matchInfoPanel%22%3Atrue%2C%22benchmarkDuration%22%3A10000%7D%2C%22unitTests%22%3A%7B%22tests%22%3A%5B%5D%2C%22testResults%22%3A%7B%7D%2C%22testsRunning%22%3Afalse%2C%22testFilter%22%3A%22ALL%22%7D%2C%22general%22%3A%7B%22forceOffline%22%3Afalse%2C%22userId%22%3Anull%2C%22email%22%3Anull%2C%22profilePicture%22%3Anull%2C%22serviceProvider%22%3Anull%2C%22metaDescription%22%3A%22Regular%20expression%20tester%20with%20syntax%20highlighting%2C%20explanation%2C%20cheat%20sheet%20for%20PHP%2FPCRE%2C%20Python%2C%20GO%2C%20JavaScript%2C%20Java%2C%20C%23%2F.NET%2C%20Rust.%22%2C%22currentTheme%22%3A%22light%22%2C%22isLibraryModerator%22%3Afalse%2C%22licenseInfo%22%3A%7B%22exp%22%3A%222099-01-01T00%3A00%3A00.000Z%22%7D%7D%2C%22account%22%3A%7B%22allTags%22%3A%5B%5D%2C%22hasLoaded%22%3Afalse%7D%2C%22quiz%22%3A%7B%22currentTaskData%22%3A%7B%7D%2C%22totalTasks%22%3A0%7D%2C%22sponsors%22%3A%7B%22sponsorData%22%3Anull%2C%22sponsors%22%3A%5B%5D%2C%22adBlock%22%3Afalse%2C%22isLoading%22%3Atrue%7D%7D'; </script> <link rel="preload" href="/static/vendors-accountPage-quickref.ac1e6162781ea1566d54.chunk.js" as="script" /> <link rel="preload" href="/static/67.7a08e53f4cbe0280b2fa.css" as="style" /> <link rel="preload" href="/static/quickref.ebce8db1ac30512c2fff.chunk.js" as="script" /> <script src="/static/vendors-bundle.dd11a96d48ef1d61246f.js" defer></script> <link rel="stylesheet" type="text/css" href="/static/23.b2a0855ed5fe212190ae.css" class="regex101-style"> <script src="/static/bundle.75327c7c68a16e4eba9f.js" defer></script> </head> <body> <div id="regex-app"> <div class="_PUcM"><div class="grIA9"><div class="PX0mF"><div class="nGtyh"></div></div><noscript><a href="https://turnonjs.com" class="uBZxP W6KiV" rel="noopener">Please enable JavaScript to use this web application.</a></noscript></div></div><div class="jQbJW"><header class="Mt50K"><h1><a href="/" class="uBZxP W6KiV JhGf4" rel="noopener" tabindex="0" aria-label="regular expressions 101"><span class="FMl1u">Regular</span> <span class="f4WR9">Expressions</span> <span class="Tp_GT">101</span></a></h1><div class="McSFM"><button class="C6U5L KJDCG" aria-label="Social" type="button"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="vlEEI XQgaE" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M19 3c-1.654 0-3 1.346-3 3 0 .502.136.968.354 1.385l-1.116 1.302A3.976 3.976 0 0 0 13 8c-.739 0-1.425.216-2.02.566L9.566 7.152A3.449 3.449 0 0 0 10 5.5C10 3.57 8.43 2 6.5 2S3 3.57 3 5.5 4.57 9 6.5 9c.601 0 1.158-.166 1.652-.434L9.566 9.98A3.972 3.972 0 0 0 9 12c0 .997.38 1.899.985 2.601l-1.692 1.692.025.025A2.962 2.962 0 0 0 7 16c-1.654 0-3 1.346-3 3s1.346 3 3 3 3-1.346 3-3c0-.476-.121-.919-.318-1.318l.025.025 1.954-1.954c.421.15.867.247 1.339.247 2.206 0 4-1.794 4-4a3.96 3.96 0 0 0-.439-1.785l1.253-1.462c.364.158.764.247 1.186.247 1.654 0 3-1.346 3-3s-1.346-3-3-3zM7 20a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM5 5.5C5 4.673 5.673 4 6.5 4S8 4.673 8 5.5 7.327 7 6.5 7 5 6.327 5 5.5zm8 8.5c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zm6-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path></svg><span class="H1qpb">Social</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="U9nzP" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></button><button class="C6U5L KJDCG" aria-label="Donate" type="button"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="vlEEI PIHnJ" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M15.999 8.5h2c0-2.837-2.755-4.131-5-4.429V2h-2v2.071c-2.245.298-5 1.592-5 4.429 0 2.706 2.666 4.113 5 4.43v4.97c-1.448-.251-3-1.024-3-2.4h-2c0 2.589 2.425 4.119 5 4.436V22h2v-2.07c2.245-.298 5-1.593 5-4.43s-2.755-4.131-5-4.429V6.1c1.33.239 3 .941 3 2.4zm-8 0c0-1.459 1.67-2.161 3-2.4v4.799c-1.371-.253-3-1.002-3-2.399zm8 7c0 1.459-1.67 2.161-3 2.4v-4.8c1.33.239 3 .941 3 2.4z"></path></svg><span class="H1qpb">Donate</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="U9nzP" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></button><button class="C6U5L KJDCG" aria-label="Info" type="button"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="vlEEI sR62n" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"></path></svg><span class="H1qpb">Info</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="U9nzP" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></button></div></header><div class="cAgJZ"><div class="Txh3p"><nav class="bForU QhyiI"><a class="uBZxP s2V9B k7vcq Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Regex Editor" href="/r/vkijKf/1"><span class="jpZxI">Regex Editor</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="kcIdU" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg></a><a class="uBZxP Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Community Patterns" href="/library"><span class="jpZxI">Community Patterns</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" class="kcIdU" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M64 480H48a32 32 0 0 1-32-32V112a32 32 0 0 1 32-32h16a32 32 0 0 1 32 32v336a32 32 0 0 1-32 32zm176-304a32 32 0 0 0-32-32h-64a32 32 0 0 0-32 32v28a4 4 0 0 0 4 4h120a4 4 0 0 0 4-4zM112 448a32 32 0 0 0 32 32h64a32 32 0 0 0 32-32v-30a2 2 0 0 0-2-2H114a2 2 0 0 0-2 2z"></path><rect width="128" height="144" x="112" y="240" rx="2" ry="2"></rect><path d="M320 480h-32a32 32 0 0 1-32-32V64a32 32 0 0 1 32-32h32a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32zm175.89-34.55-32.23-340c-1.48-15.65-16.94-27-34.53-25.31l-31.85 3c-17.59 1.67-30.65 15.71-29.17 31.36l32.23 340c1.48 15.65 16.94 27 34.53 25.31l31.85-3c17.59-1.67 30.65-15.71 29.17-31.36z"></path></svg></a><a class="uBZxP Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Account" href="/account/mine"><span class="jpZxI">Account</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="kcIdU" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13Z"></path></svg></a><a class="uBZxP Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Regex Quiz" href="/quiz"><span class="jpZxI">Regex Quiz</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="kcIdU" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M17 4C20.3137 4 23 6.68629 23 10V14C23 17.3137 20.3137 20 17 20H7C3.68629 20 1 17.3137 1 14V10C1 6.68629 3.68629 4 7 4H17ZM10 9H8V11H6V13H7.999L8 15H10L9.999 13H12V11H10V9ZM18 13H16V15H18V13ZM16 9H14V11H16V9Z"></path></svg></a><a class="uBZxP Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Settings" href="/settings/general"><span class="jpZxI">Settings</span><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="kcIdU" height="18" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M9.95401 2.2106C11.2876 1.93144 12.6807 1.92263 14.0449 2.20785C14.2219 3.3674 14.9048 4.43892 15.9997 5.07103C17.0945 5.70313 18.364 5.75884 19.4566 5.3323C20.3858 6.37118 21.0747 7.58203 21.4997 8.87652C20.5852 9.60958 19.9997 10.736 19.9997 11.9992C19.9997 13.2632 20.5859 14.3902 21.5013 15.1232C21.29 15.7636 21.0104 16.3922 20.6599 16.9992C20.3094 17.6063 19.9049 18.1627 19.4559 18.6659C18.3634 18.2396 17.0943 18.2955 15.9997 18.9274C14.9057 19.559 14.223 20.6294 14.0453 21.7879C12.7118 22.067 11.3187 22.0758 9.95443 21.7906C9.77748 20.6311 9.09451 19.5595 7.99967 18.9274C6.90484 18.2953 5.63539 18.2396 4.54272 18.6662C3.61357 17.6273 2.92466 16.4164 2.49964 15.1219C3.41412 14.3889 3.99968 13.2624 3.99968 11.9992C3.99968 10.7353 3.41344 9.60827 2.49805 8.87524C2.70933 8.23482 2.98894 7.60629 3.33942 6.99923C3.68991 6.39217 4.09443 5.83576 4.54341 5.33257C5.63593 5.75881 6.90507 5.703 7.99967 5.07103C9.09364 4.43942 9.7764 3.3691 9.95401 2.2106ZM11.9997 14.9992C13.6565 14.9992 14.9997 13.6561 14.9997 11.9992C14.9997 10.3424 13.6565 8.99923 11.9997 8.99923C10.3428 8.99923 8.99967 10.3424 8.99967 11.9992C8.99967 13.6561 10.3428 14.9992 11.9997 14.9992Z"></path></svg></a><button class="C6U5L Tbe4j Z8IXS" style="width:34px;height:34px" aria-label="Live Help" type="button"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="kcIdU" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16.8 19L14 22.5L11.2 19H6C5.44772 19 5 18.5523 5 18V7.10256C5 6.55028 5.44772 6.10256 6 6.10256H22C22.5523 6.10256 23 6.55028 23 7.10256V18C23 18.5523 22.5523 19 22 19H16.8ZM2 2H19V4H3V15H1V3C1 2.44772 1.44772 2 2 2Z"></path></svg></button></nav><div class="_7EOv"><div class="Ukk_V"><h2 class="tv8Jw oY83r Sgmg3 hdfIT"><span class="oY83r">Save &amp; Share</span></h2><ul class="OZHfn"><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo GZZD0"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z"></path></svg><span>Regex Version: <strong>ver. <!-- -->1</strong></span></div></li><li class="h7Pb8 hQq_B S_Xfr" aria-label="Please modify the data in this entry before attempting to update it"><div class="PHr2N kWAKO ZKRMo tVODk"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z"></path></svg><div class="UmiAI">Update Regex</div><div class="nCjjB">ctrl+⇧+s</div></div></li><li class="h7Pb8 hQq_B S_Xfr" aria-label="Please insert or update the data in the editor before attempting to save a new entry"><div class="PHr2N kWAKO ZKRMo tVODk eP6zN"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M18 21V13H6V21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H17L21 7V20C21 20.5523 20.5523 21 20 21H18ZM16 21H8V15H16V21Z"></path></svg><div class="UmiAI">Save new Regex</div><div class="nCjjB">ctrl+s</div></div></li><li class="h7Pb8 hQq_B S_Xfr" aria-label="Only signed in users are allowed to contribute to the community library"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 12.5858L16.2426 16.8284L14.8284 18.2426L13 16.415V22H11V16.413L9.17157 18.2426L7.75736 16.8284L12 12.5858ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18 17C18 13.6863 15.3137 11 12 11C8.7616 11 6.12243 13.5656 6.00414 16.7751L6 17L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z"></path></svg><div class="NkLlB">Add to Community Library</div></div></li><!--$--><!--/$--><!--$--><!--/$--></ul></div><div class="Ukk_V"><h2 class="tv8Jw oY83r Sgmg3 hdfIT"><span class="oY83r">Flavor</span></h2><ul class="OZHfn"><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">PCRE2 (PHP &gt;=7.3)</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">PCRE (PHP &lt;7.3)</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb Dt_6h"><div class="dwTUt">ECMAScript (JavaScript)</div><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="oundo" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">Python</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">Golang</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">Java 8</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">.NET 7.0 (C#)</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg><div class="d68xb"><div class="dwTUt">Rust</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo wEKX0"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM13 13.3551V14H11V12.5C11 11.9477 11.4477 11.5 12 11.5C12.8284 11.5 13.5 10.8284 13.5 10C13.5 9.17157 12.8284 8.5 12 8.5C11.2723 8.5 10.6656 9.01823 10.5288 9.70577L8.56731 9.31346C8.88637 7.70919 10.302 6.5 12 6.5C13.933 6.5 15.5 8.067 15.5 10C15.5 11.5855 14.4457 12.9248 13 13.3551Z"></path></svg><div class="NkLlB">Regex Flavor Guide</div></div></li></ul></div><div class="Ukk_V"><h2 class="tv8Jw oY83r Sgmg3 hdfIT"><span class="oY83r">Function</span></h2><ul class="OZHfn"><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M10.9999 12L3.92886 19.0711L2.51465 17.6569L8.1715 12L2.51465 6.34317L3.92886 4.92896L10.9999 12ZM10.9999 19H20.9999V21H10.9999V19Z"></path></svg><div class="d68xb Dt_6h"><div class="dwTUt">Match</div><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="oundo" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M9.68347 7.55885L12 9.87538L18.3744 3.50102C19.1554 2.71997 20.4217 2.71997 21.2028 3.50102L21.9099 4.20812L9.68347 16.4346C9.88726 16.9145 10 17.4424 10 17.9967C10 20.2058 8.20914 21.9967 6 21.9967C3.79086 21.9967 2 20.2058 2 17.9967C2 15.7876 3.79086 13.9967 6 13.9967C6.55427 13.9967 7.08222 14.1094 7.56215 14.3132L9.87868 11.9967L7.56215 9.68017C7.08222 9.88397 6.55427 9.9967 6 9.9967C3.79086 9.9967 2 8.20584 2 5.9967C2 3.78756 3.79086 1.9967 6 1.9967C8.20914 1.9967 10 3.78756 10 5.9967C10 6.55098 9.88726 7.07892 9.68347 7.55885ZM6 7.9967C7.10457 7.9967 8 7.10127 8 5.9967C8 4.89213 7.10457 3.9967 6 3.9967C4.89543 3.9967 4 4.89213 4 5.9967C4 7.10127 4.89543 7.9967 6 7.9967ZM6 19.9967C7.10457 19.9967 8 19.1013 8 17.9967C8 16.8921 7.10457 15.9967 6 15.9967C4.89543 15.9967 4 16.8921 4 17.9967C4 19.1013 4.89543 19.9967 6 19.9967ZM15.5346 13.41L21.9099 19.7853L21.2028 20.4924C20.4217 21.2734 19.1554 21.2734 18.3744 20.4924L13.4133 15.5313L15.5346 13.41Z"></path></svg><div class="d68xb"><div class="dwTUt">Substitution</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M2 18H9V20H2V18ZM2 11H11V13H2V11ZM2 4H22V6H2V4ZM20.674 13.0251L21.8301 12.634L22.8301 14.366L21.914 15.1711C21.9704 15.4386 22 15.7158 22 16C22 16.2842 21.9704 16.5614 21.914 16.8289L22.8301 17.634L21.8301 19.366L20.674 18.9749C20.2635 19.3441 19.7763 19.6295 19.2391 19.8044L19 21H17L16.7609 19.8044C16.2237 19.6295 15.7365 19.3441 15.326 18.9749L14.1699 19.366L13.1699 17.634L14.086 16.8289C14.0296 16.5614 14 16.2842 14 16C14 15.7158 14.0296 15.4386 14.086 15.1711L13.1699 14.366L14.1699 12.634L15.326 13.0251C15.7365 12.6559 16.2237 12.3705 16.7609 12.1956L17 11H19L19.2391 12.1956C19.7763 12.3705 20.2635 12.6559 20.674 13.0251ZM18 18C19.1046 18 20 17.1046 20 16C20 14.8954 19.1046 14 18 14C16.8954 14 16 14.8954 16 16C16 17.1046 16.8954 18 18 18Z"></path></svg><div class="d68xb"><div class="dwTUt">List</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M17 2V4H16V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V4H7V2H17ZM13 15C12.4477 15 12 15.4477 12 16C12 16.5523 12.4477 17 13 17C13.5523 17 14 16.5523 14 16C14 15.4477 13.5523 15 13 15ZM11 12C10.4477 12 10 12.4477 10 13C10 13.5523 10.4477 14 11 14C11.5523 14 12 13.5523 12 13C12 12.4477 11.5523 12 11 12ZM14 4H10V8H14V4Z"></path></svg><div class="d68xb"><div class="dwTUt">Unit Tests </div></div></div></li></ul></div><div><h2 class="tv8Jw oY83r Sgmg3 hdfIT"><span class="oY83r">Tools</span></h2><ul class="OZHfn"><li class="h7Pb8"><a class="uBZxP ZB4vA" href="/r/vkijKf/1/codegen?language=javascript"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.57 1.14l3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13l.5-.5h7.72l.35.14zM10 5h3l-3-3v3zM3 2v12h10V6H9.5L9 5.5V2H3zm2.062 7.533l1.817-1.828L6.17 7 4 9.179v.707l2.171 2.174.707-.707-1.816-1.82zM8.8 7.714l.7-.709 2.189 2.175v.709L9.5 12.062l-.705-.709 1.831-1.82L8.8 7.714z"></path></svg><div class="NkLlB">Code Generator</div></div></a></li><li class="h7Pb8 hQq_B S_Xfr" aria-label="This feature is only available for the PCRE flavor"><a class="uBZxP ZB4vA" tabindex="-1" href="/r/vkijKf/1/debugger"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M6.05636 8.30049C6.11995 8.19854 6.18609 8.09835 6.25469 8H17.7453C17.8139 8.09835 17.88 8.19854 17.9436 8.30049L19.9641 7.13397L20.9641 8.86602L18.7512 10.1436C18.9134 10.7348 19 11.3573 19 12V13H22V15H19C19 15.9534 18.8094 16.8623 18.4642 17.6907L20.9641 19.134L19.9641 20.866L17.4383 19.4077C16.3533 20.7447 14.7853 21.6737 13 21.9291V14H11V21.9291C9.21467 21.6737 7.64665 20.7447 6.56171 19.4077L4.0359 20.866L3.0359 19.134L5.5358 17.6907C5.19061 16.8623 5 15.9534 5 15H2V13H5V12C5 11.3573 5.08661 10.7348 5.2488 10.1436L3.0359 8.86602L4.0359 7.13397L6.05636 8.30049ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6H8Z"></path></svg><div class="NkLlB">Regex Debugger</div></div></a></li><li class="h7Pb8 hQq_B S_Xfr" aria-label="There is currently no data to export"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="none" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M16.9498 5.96781L15.5356 7.38203L13 4.84646V17.0421H11V4.84653L8.46451 7.38203L7.05029 5.96781L12 1.01807L16.9498 5.96781Z" fill="currentColor"></path><path d="M5 20.9819V10.9819H9V8.98193H3V22.9819H21V8.98193H15V10.9819H19V20.9819H5Z" fill="currentColor"></path></svg><div class="NkLlB">Export Matches</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M20 13C20 15.2091 19.1046 17.2091 17.6569 18.6569L19.0711 20.0711C20.8807 18.2614 22 15.7614 22 13 22 7.47715 17.5228 3 12 3 6.47715 3 2 7.47715 2 13 2 15.7614 3.11929 18.2614 4.92893 20.0711L6.34315 18.6569C4.89543 17.2091 4 15.2091 4 13 4 8.58172 7.58172 5 12 5 16.4183 5 20 8.58172 20 13ZM15.293 8.29297 10.5 12.5 12.5 14.5 16.7072 9.70718 15.293 8.29297Z"></path></svg><div class="NkLlB">Benchmark Regex</div></div></li></ul></div></div></div><div class="yOGxa DpjAw"><div class="E3C1c"><div class="HP3Ea">Sponsors</div></div><div class="KXrel"><div class="luKw2"><div class="oavIg" style="margin-top:20px"><div>There are currently no sponsors. <a class="uBZxP W6KiV" href="https://digidib.dev/docs/regex101/sponsors/">Become a sponsor today!</a></div></div></div><div class="IChEy"><div class="cOIAf"></div><div class="gXvpe"><div></div><div></div><div></div></div></div></div></div></div><div class="KQ_Ab"><div class="bCcdz"><div class="ZtiXL" style="width:nullpx"><div class="n4YC7 y5BIK"></div><div class="UqCd6 Uo3UY nENEz"><button class="C6U5L" type="button"><h2 class="tv8Jw oY83r Sgmg3 YBGfG WuLbu QfJwM"><span class="oY83r">Explanation</span><div class="W5Slk"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></div></h2></button><div class="OEs68 RTVjE"><div class="T7QyX">An explanation of your regex will be automatically generated as you type.</div></div></div><div class="UqCd6 Uo3UY nENEz"><button class="C6U5L" type="button"><h2 class="tv8Jw oY83r Sgmg3 YBGfG WuLbu QfJwM"><span class="oY83r">Match Information</span><div class="W5Slk"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></div></h2></button><div class="OEs68 RTVjE"><div class="T7QyX">Detailed match information will be displayed here automatically.</div></div></div><div class="UqCd6 Uo3UY" id="quickrefParent"><button class="C6U5L" type="button"><h2 class="tv8Jw oY83r Sgmg3 YBGfG WuLbu QfJwM"><span class="oY83r">Quick Reference</span><div class="W5Slk"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"></path></svg></div></h2></button><div class="OEs68 RTVjE"><!--$--><div class="H63e9"><div class="BsSks"><label class="nI3A5"><span class="QJoW5">Search reference</span><div class="pdyg7"><input type="text" placeholder="Search reference" spellcheck="false" class="qjXYB" value=""/></div></label><div><ul class="OZHfn"><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 20 20" aria-hidden="true" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"></path></svg><div class="d68xb"><div class="dwTUt">All Tokens</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M11.9998 17L6.12197 20.5902L7.72007 13.8906L2.48926 9.40983L9.35479 8.85942L11.9998 2.5L14.6449 8.85942L21.5104 9.40983L16.2796 13.8906L17.8777 20.5902L11.9998 17Z"></path></svg><div class="d68xb Dt_6h"><div class="dwTUt">Common Tokens</div><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="oundo" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12C15 13.6569 13.6569 15 12 15Z"></path></svg><div class="d68xb"><div class="dwTUt">General Tokens</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M13 9.87398V19.928C16.6187 19.4745 19.4869 16.5923 19.9381 12.9558H17L20.7042 7C21.529 8.46132 22 10.1508 22 11.9509C22 17.5009 17.5228 22 12 22C6.47715 22 2 17.5009 2 11.9509C2 10.1508 2.47097 8.46132 3.29582 7L7 12.9558H4.06189C4.51314 16.5923 7.38128 19.4745 11 19.928V9.87398C9.27477 9.42994 8 7.86384 8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6C16 7.86384 14.7252 9.42994 13 9.87398ZM12 8C13.1046 8 14 7.10457 14 6C14 4.89543 13.1046 4 12 4C10.8954 4 10 4.89543 10 6C10 7.10457 10.8954 8 12 8Z"></path></svg><div class="d68xb"><div class="dwTUt">Anchors</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM7.19709 14.682L5.02243 16.8555C5.52665 17.5788 6.14045 18.2199 6.83975 18.7549L7.14462 18.9777L9.31803 16.8029C8.51078 16.3512 7.82909 15.7018 7.33848 14.9203L7.19709 14.682ZM16.8029 14.682C16.3512 15.4892 15.7018 16.1709 14.9203 16.6615L14.682 16.8029L16.8555 18.9776C17.5787 18.4734 18.2198 17.8596 18.7549 17.1604L18.9776 16.8555L16.8029 14.682ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8ZM7.14462 5.02232C6.42133 5.52656 5.78012 6.14039 5.24506 6.83973L5.02232 7.14462L7.19709 9.31803C7.64883 8.51078 8.2982 7.82909 9.07969 7.33848L9.31803 7.19709L7.14462 5.02232ZM16.8555 5.02243L14.682 7.19709C15.4892 7.64883 16.1709 8.2982 16.6615 9.07969L16.8029 9.31803L18.9777 7.14462C18.4735 6.42137 17.8597 5.7802 17.1604 5.24516L16.8555 5.02243Z"></path></svg><div class="d68xb"><div class="dwTUt">Meta Sequences</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M8 20V21.9325C8 22.2086 7.77614 22.4325 7.5 22.4325C7.38303 22.4325 7.26977 22.3915 7.17991 22.3166L3.06093 18.8841C2.84879 18.7073 2.82013 18.392 2.99691 18.1799C3.09191 18.0659 3.23264 18 3.38103 18H8L18 18C19.1046 18 20 17.1046 20 16V8H22V16C22 18.2091 20.2091 20 18 20H8ZM16 4V2.0675C16 1.79136 16.2239 1.5675 16.5 1.5675C16.617 1.5675 16.7302 1.60851 16.8201 1.68339L20.9391 5.11587C21.1512 5.29266 21.1799 5.60794 21.0031 5.82008C20.9081 5.93407 20.7674 5.99998 20.619 5.99998H16L6 6C4.89543 6 4 6.89543 4 8V16H2V8C2 5.79086 3.79086 4 6 4H16ZM11 8H13V16H11V10H9V9L11 8Z"></path></svg><div class="d68xb"><div class="dwTUt">Quantifiers</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M6.92316 21C5.11268 18.6642 4 15.493 4 12C4 8.50702 5.11268 5.33579 6.92316 3H8.93729C7.23506 5.3884 6.2 8.54241 6.2 12C6.2 15.4576 7.23506 18.6116 8.93729 21H6.92316ZM17.0741 21H15.06C16.7622 18.6116 17.7973 15.4576 17.7973 12C17.7973 8.54241 16.7622 5.3884 15.06 3H17.0741C18.8846 5.33579 19.9973 8.50702 19.9973 12C19.9973 15.493 18.8846 18.6642 17.0741 21Z"></path></svg><div class="d68xb"><div class="dwTUt">Group Constructs</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M9 3V5H6V19H9V21H4V3H9ZM15 3H20V21H15V19H18V5H15V3Z"></path></svg><div class="d68xb"><div class="dwTUt">Character Classes</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M3 3H12.382C12.7607 3 13.107 3.214 13.2764 3.55279L14 5H20C20.5523 5 21 5.44772 21 6V17C21 17.5523 20.5523 18 20 18H13.618C13.2393 18 12.893 17.786 12.7236 17.4472L12 16H5V22H3V3Z"></path></svg><div class="d68xb"><div class="dwTUt">Flags/Modifiers</div></div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="R4VSs" height="14" width="14" xmlns="http://www.w3.org/2000/svg"><path d="M9.68347 7.55885L12 9.87538L18.3744 3.50102C19.1554 2.71997 20.4217 2.71997 21.2028 3.50102L21.9099 4.20812L9.68347 16.4346C9.88726 16.9145 10 17.4424 10 17.9967C10 20.2058 8.20914 21.9967 6 21.9967C3.79086 21.9967 2 20.2058 2 17.9967C2 15.7876 3.79086 13.9967 6 13.9967C6.55427 13.9967 7.08222 14.1094 7.56215 14.3132L9.87868 11.9967L7.56215 9.68017C7.08222 9.88397 6.55427 9.9967 6 9.9967C3.79086 9.9967 2 8.20584 2 5.9967C2 3.78756 3.79086 1.9967 6 1.9967C8.20914 1.9967 10 3.78756 10 5.9967C10 6.55098 9.88726 7.07892 9.68347 7.55885ZM6 7.9967C7.10457 7.9967 8 7.10127 8 5.9967C8 4.89213 7.10457 3.9967 6 3.9967C4.89543 3.9967 4 4.89213 4 5.9967C4 7.10127 4.89543 7.9967 6 7.9967ZM6 19.9967C7.10457 19.9967 8 19.1013 8 17.9967C8 16.8921 7.10457 15.9967 6 15.9967C4.89543 15.9967 4 16.8921 4 17.9967C4 19.1013 4.89543 19.9967 6 19.9967ZM15.5346 13.41L21.9099 19.7853L21.2028 20.4924C20.4217 21.2734 19.1554 21.2734 18.3744 20.4924L13.4133 15.5313L15.5346 13.41Z"></path></svg><div class="d68xb"><div class="dwTUt">Substitution</div></div></div></li></ul></div></div><div class="FTPMe"></div><div class="uShjc"><ul class="OZHfn"><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A single character of: a, b or c</div><div class="nCjjB zaGCY">[abc]</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A character except: a, b or c</div><div class="nCjjB zaGCY">[^abc]</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A character in the range: a-z</div><div class="nCjjB zaGCY">[a-z]</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A character not in the range: a-z</div><div class="nCjjB zaGCY">[^a-z]</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A character in the range: a-z or A-Z</div><div class="nCjjB zaGCY">[a-zA-Z]</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any single character</div><div class="nCjjB zaGCY">.</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Alternate - match either a or b</div><div class="nCjjB zaGCY">a|b</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any whitespace character</div><div class="nCjjB zaGCY">\s</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any non-whitespace character</div><div class="nCjjB zaGCY">\S</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any digit</div><div class="nCjjB zaGCY">\d</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any non-digit</div><div class="nCjjB zaGCY">\D</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any word character</div><div class="nCjjB zaGCY">\w</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Any non-word character</div><div class="nCjjB zaGCY">\W</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Match everything enclosed</div><div class="nCjjB zaGCY">(?:...)</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Capture everything enclosed</div><div class="nCjjB zaGCY">(...)</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Zero or one of a</div><div class="nCjjB zaGCY">a?</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Zero or more of a</div><div class="nCjjB zaGCY">a*</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">One or more of a</div><div class="nCjjB zaGCY">a+</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Exactly 3 of a</div><div class="nCjjB zaGCY">a{3}</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">3 or more of a</div><div class="nCjjB zaGCY">a{3,}</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Between 3 and 6 of a</div><div class="nCjjB zaGCY">a{3,6}</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Start of string</div><div class="nCjjB zaGCY">^</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">End of string</div><div class="nCjjB zaGCY">$</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">A word boundary</div><div class="nCjjB zaGCY">\b</div></div></li><li class="C6U5L h7Pb8" role="button" tabindex="0"><div class="PHr2N kWAKO ZKRMo tVODk"><div class="UmiAI">Non-word boundary</div><div class="nCjjB zaGCY">\B</div></div></li></ul></div></div><!--/$--></div></div></div><div class="GIv_Y"><div class="JeE3Q"><div class="swzka"><h2 class="tv8Jw oY83r Sgmg3"><span class="oY83r">Regular Expression</span><div class="Czfcr"><div class="wQBLX" aria-label=""><div class="wH74e pVtvJ">No Match</div></div></div></h2></div><div class="SXWLM"><div class="C6U5L dC7Q2" aria-disabled="false" aria-label="Change delimiter" role="button" tabindex="0"><div class="DwzEN"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 192 512" class="tqmJA" height="12" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"></path></svg>/</div></div><div class="sMRwm" translate="no" aria-label="insert your regular expression here" dir="ltr"></div><div class="C6U5L kXfR7" aria-label="gm" role="button" tabindex="0"><div class="YizcW"><div class="LDjM1">/</div><div class="Rt5R5">gm</div></div></div><button class="C6U5L HDqqe mzs7q" aria-disabled="false" aria-label="Copy to clipboard" type="button"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z"></path></svg></button></div></div><div class="q7fFs"><div class="B_rlJ"><div class="j5yfc"><h2 class="tv8Jw oY83r Sgmg3"><span class="oY83r">Test String</span></h2><div class="MP7Wk"><div class="tPLNx" translate="no" aria-label="insert your test string here" dir="ltr"></div></div></div></div></div></div><div></div><div></div></div></div></div></div></body></html>

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