Regular Expressions 101

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
No Match

/
/
mg

Test String

Substitution

Processing...

Code Generator

Generated Code

const regex = /(\{(?:[^}{]+|\{(?:[^}{]+|\{[^}{]*\})*\})*\})/mg; // Alternative syntax using RegExp constructor // const regex = new RegExp('(\\{(?:[^}{]+|\\{(?:[^}{]+|\\{[^}{]*\\})*\\})*\\})', 'mg') const str = `h2.entry-title{font:18px/24px "Roboto",Helvetica,Arial,Verdana,sans-serif;margin-bottom:4px}.h3-size.entry-title{padding-right:10px;text-align:justify}.h3-size{font:normal 20px / 24px "Roboto",Helvetica,Arial,Verdana,sans-serif!important}.top-bar{padding:0}@media screen and (min-width:1051px){body.overlap .page-title .wf-wrap{padding-top:70px!important;padding-bottom:70px!important}} @media screen and (min-width:641px) and (max-width:1050px){body.overlap .page-title .wf-wrap{padding-top:42px!important;padding-bottom:42px!important}body.page-title .wf-td .breadcrumbs{margin-top:2px}} @media screen and (min-width:0) and (max-width:640px){body.overlap .page-title .wf-wrap{padding-top:0!important;padding-bottom:4px!important}.h3-size{font:normal 17px / 21px "Roboto",Helvetica,Arial,Verdana,sans-serif!important}body.breadcrumbs.breadcrumbs-bg{margin-top:0!important}.page-title .breadcrumbs,.page-title .breadcrumbs a{font-size:11px!important}} .wf-td .text-normal{font-size:12px}.breadcrumbs.bg-light{padding:3px 8px!important}.blog-content.wf-td p{margin-bottom:8px}.blog-content.wf-td .entry-meta{padding:0 0 4px}.blog.layout-list .post .alignleft{margin-bottom:5px}.blog.layout-list .post{padding-top:5px}.post .entry-title a:hover{filter:saturate(4)}.page-title .wf-container-title{padding-top:0!important;padding-bottom:0!important}.vc_tta-title-text{font:13px/16px "Roboto",Helvetica,Arial,Verdana,sans-serif;font-weight:500}#text-2 .widget-title{font:13px/18px "Roboto",Helvetica,Arial,Verdana,sans-serif}#text-2 .textwidget{line-height:14px}#footer .wf-container-footer{padding-top:15px}#page .project-share-overlay .share-button.entry-share{font:18px/20px "Roboto",Helvetica,Arial,Verdana,sans-serif;color:#4a66d6;filter:contrast(200%);filter:saturate(4)}.shortcode-action-box{padding:20px 25px 10px 30px!important;color:#4a66d6;filter:contrast(200%);filter:saturate(4)}.content .soc-ico a .icon{fill:#0537ff}#footer .wf-container-footer{opacity:.5}.widget_search form{margin:0 0 0 0!important}@media screen and (min-width:821px){.sidebar-content .widget-title{margin-bottom:5px!important}.cat-item{margin:0!important;padding:5px 0 0!important}.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-first,.emd4ebookandmagazinesdownloadwidget .mccw-col,.sidebar-content .mccw-col{padding-right:14px!important}.mccw-col,.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-first,.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-last,.emd4ebookandmagazinesdownloadwidget .mccw-col,.sidebar-content .mccw-col{width:-moz-calc(50% - 14px)!important;width:-o-calc(50% - 14px)!important;width:-webkit-calc(50% - 14px)!important;width:calc(50% - 14px)!important}} @media screen and (min-width:360px) and (max-width:820px){.sidebar-content .widget-title{margin-bottom:20px!important}.cat-item{padding:7px 0 7px 0!important}.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-first,.emd4ebookandmagazinesdownloadwidget .mccw-col,.sidebar-content .mccw-col{padding-right:14px!important}.mccw-col,.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-first,.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-last,.emd4ebookandmagazinesdownloadwidget .mccw-col,.sidebar-content .mccw-col{width:-moz-calc(50% - 14px)!important;width:-o-calc(50% - 14px)!important;width:-webkit-calc(50% - 14px)!important;width:calc(50% - 14px)!important}} @media screen and (max-width:359px){.sidebar-content .widget-title{margin-bottom:20px!important}.cat-item{padding:7px 0 7px 0!important}.widget_emd4ebookandmagazinesdownloadwidget ul.mccw-col-first{padding-right:0!important;width:100%;padding-bottom:10px}} .style-3 .yuzo-list:before,.style-3 .yuzo-list::before{content:'';background:none!important;position:absolute;left:0;top:7px;width:22px;height:22px;opacity:.2}.style-3 .yuzo-list a{line-height:16px!important}.yuzo-list{border-bottom:0 solid #f4f4f4!important}.style-3 .yuzo-list a:hover{filter:saturate(4);color:#4a66d6;text-decoration:none}.yuzo_related_post_widget{margin:0}.yuzo_widget_wrap .yuzo_views_post{padding:0 2px}.style-3 .yuzo-list a{padding-left:0!important}.yuzo_related_post_widget .yuzo-list .link-list .yuzo_views_post{display:inline-block!important}.yuzo-list .link-list .yuzo_views_post,.yuzo-list .link-list .yuzo_views_post,.yuzo_icon_views,.yuzo_icon_views{background:none!important}.project-share-overlay.allways-visible-icons,.entry-tags,.shortcode-action-box{box-shadow:0 0 8px -2px #333;border-radius:3px;background:#fff;padding:10px;margin-bottom:20px;background:-moz-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(27%,#fff),color-stop(100%,#e8e8e8));background:-webkit-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-o-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-ms-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:linear-gradient(to bottom,#fff 1%,#fff 27%,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e8e8e8',GradientType=0);height:auto!important;float:left;width:98%;margin-left:1%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box}.yuzo-list .image-list::before{content:"emd4 club";width:100%;color:#fff!important;z-index:1;bottom:2px;margin-left:2px;font-size:4px!important;text-align:left;box-sizing:border-box;-moz-box-sizing:border-box;position:absolute}.yuzo_wraps{box-shadow:0 0 8px -2px #333;border-radius:3px;background:#fff;padding:10px;background:-moz-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(1%,#fff),color-stop(27%,#fff),color-stop(100%,#e8e8e8));background:-webkit-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-o-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:-ms-linear-gradient(top,#fff 1%,#fff 27%,#e8e8e8 100%);background:linear-gradient(to bottom,#fff 1%,#fff 27%,#e8e8e8 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#e8e8e8',GradientType=0);height:auto!important;float:left;width:98%;margin-left:1%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box}a.yuzo__text--title,.yuzo__text--title,.yuzo-list a.yuzo__text--title{font-weight:normal;color:#4a66d6!important;font-size:13px;filter:saturate(4)}.yuzo__title ::before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAphAAAKYQH8zEolAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAEtQTFRF////AAAAAAAAAAAAAAAAAAAAAAAEAAADAAADAAACAAACAgACAgACAgACAgACAQABAQADAQADAQADAQACAQACAQACAQACAQACAQACjwA2xwAAABh0Uk5TAAIEIDA/QFFkeX2Ago2dvcDBwtDZ4OT+yEuE8AAAAHNJREFUKFOtkVkOgCAMREfFFRdc4f4ntWjUSG2Mie+PvswQKPAZ84QXbmbj2W1CsxItC99GIrtDgvDC3bmEmNjPCuq5ysCEVYcQE39XJRCqNIR3nAlbs0+saG4x9lEoUhITCreEixpINEDeshWarozZBa+sC18XgoSOCdYAAAAASUVORK5CYII71a91eb3cbaabc2cd8b11cc616e0253d);width:32px;height:32px;display:inline-block;position:relative;top:6px;opacity:.6}.yuzo__title h3,.yuzo__title{display:inline-block}.yuzo_related_post .relatedthumb .yuzo-img-wrap{margin-bottom:0}.yuzo_related_post .yuzo_clearfixed{margin-left:30px}.yuzo_text{filter:saturate(4)!important;font-size:12px!important}.yuzo-list .image-list{box-shadow:0 0 4px 0 rgba(133,164,191,0.75);margin:4px 15px 4px 7px}.yuzo_related_post .relatedthumb .yuzo-img-wrap{width:34px!important;height:48px!important}.yuzo-img{width:32px!important;height:46px!important;border-style:solid!important;border-width:1px!important;border-radius:1px!important;border-color:#308adf!important}.yuzo-list .image-list::before{content:'test text';font-size:28px;text-align:left;width:50%;color:#F00;z-index:1;position:absolute}.yuzo-list .image-list::after{content:url();position:absolute;width:33px;height:21%;bottom:7px;left:9px;background-image:-ms-linear-gradient(top,rgba(255,255,255,0) 0,rgba(48,138,223,1) 41%);background-image:-moz-linear-gradient(top,rgba(255,255,255,0) 0,rgba(48,138,223,1) 41%);background-image:-o-linear-gradient(top,rgba(255,255,255,0) 0,rgba(48,138,223,1) 41%);background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(255,255,255,0)),color-stop(41,rgba(48,138,223,1)));background-image:-webkit-linear-gradient(top,rgba(255,255,255,0) 0,rgba(48,138,223,1) 41%);background-image:linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(48,138,223,1) 41%)}.yuzo_icon_views{float:right;margin-right:7px!important}.entry-meta .post-yuzo-views{float:right;margin-right:7px!important}.entry-meta .post-yuzo-views::after{content:""!important}.vc_single_image-img .img{width:100%;vertical-align:top}article.post:nth-child(n+1)>div:nth-child(1)>a:nth-child(2)>img:nth-child(1),.wp-caption .zoomInUp{margin:-2px}article.post:nth-child(n+1)>div:nth-child(1)>a:nth-child(2)::after,.alignnone:after,.wpb_single_image::after,.mfp-figure>figure:nth-child(2)::after,.fl-post-feed-image::after,div.fl-post-feed-post:nth-child(1)>div:nth-child(8)>a:nth-child(1)>img:nth-child(1)::after{content:"\\a";position:absolute;width:100%;height:100%;bottom:0;left:0;background:-moz-linear-gradient(270deg,rgba(48,138,223,1) 0,rgba(48,138,223,1) 6%,rgba(255,255,255,0) 11%,rgba(255,255,255,0) 81%,rgba(48,138,223,1) 88%,rgba(48,138,223,1) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(48,138,223,1)),color-stop(6%,rgba(48,138,223,1)),color-stop(11%,rgba(255,255,255,0)),color-stop(81%,rgba(255,255,255,0)),color-stop(88%,rgba(48,138,223,1)),color-stop(100%,rgba(48,138,223,1)));background:-webkit-linear-gradient(270deg,rgba(48,138,223,1) 0,rgba(48,138,223,1) 6%,rgba(255,255,255,0) 11%,rgba(255,255,255,0) 81%,rgba(48,138,223,1) 88%,rgba(48,138,223,1) 100%);background:-o-linear-gradient(270deg,rgba(48,138,223,1) 0,rgba(48,138,223,1) 6%,rgba(255,255,255,0) 11%,rgba(255,255,255,0) 81%,rgba(48,138,223,1) 88%,rgba(48,138,223,1) 100%);background:-ms-linear-gradient(270deg,rgba(48,138,223,1) 0,rgba(48,138,223,1) 6%,rgba(255,255,255,0) 11%,rgba(255,255,255,0) 81%,rgba(48,138,223,1) 88%,rgba(48,138,223,1) 100%);background:linear-gradient(180deg,rgba(48,138,223,1) 0,rgba(48,138,223,1) 6%,rgba(255,255,255,0) 11%,rgba(255,255,255,0) 81%,rgba(48,138,223,1) 88%,rgba(48,138,223,1) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#308adf',endColorstr='#308adf',GradientType=0);color:#FFF;font-size:10px;text-align:center}article.post:nth-child(n+1)>div:nth-child(1)>a:nth-child(2):before,.fl-post-feed-image::before,div.fl-post-feed-post:nth-child(1)>div:nth-child(1)>a:nth-child(1)>img:nth-child(1)::before,.wp-post-image::before{content:"emd4 club";width:100%;color:#fff!important;z-index:1;bottom:7px;font-size:9px!important;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;position:absolute}.small-fancy-datas .fancy-date a,.small-fancy-datas .fullwidth-img .fancy-date a{top:0;left:0}.alignnone:before,.mfp-figure>figure:nth-child(2):before{content:"emd4 club";width:100%;color:#fff!important;z-index:1;bottom:16px;font-size:16px!important;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;position:absolute}.wp-caption-text{margin-bottom:0}.no-share-buttons img.mfp-img{padding:0;border-style:solid!important;border-width:2px!important;border-radius:2px!important;border-color:#308adf!important}.mfp-content .mfp-close{margin:-40px 0 0 0}.blog.layout-list .post{padding-top:11px}.widget-title{clear:both!important}.post .rollover,.post .rollover-video,.post img,img[class*=align],img[class*=wp-image-],img[class*=attachment-]{max-width:400px!important;height:auto!important}.alignnone{float:none!important;margin:0 0!important}.blog.layout-list .post .alignleft,.blog.layout-list .post .alignnone{margin-bottom:11px!important}.layout-list .post{padding-top:11px!important;margin-top:1px!important}.articles-list .post:last-child{margin-bottom:-11px!important}.blog.layout-list .post{padding-top:11px!important}.footer .widget{margin-bottom:3px!important}#main-nav,.main-nav{display:none!important}#dl-menu.wf-mobile-visible,.mobile-navigation{display:none!important}.rollover i,.post-rollover i,.rollover-video i,.zoomInUp,.alignnone{background-color:rgba(252,15,15,0.4)!important;background:rgba(252,15,15,0.4)!important;background:-webkit-linear-gradient(30deg,rgba(252,15,15,0.4) 0,rgba(17,144,201,0.4) 100%)!important;background:linear-gradient(30deg,rgba(252,15,15,0.4) 0,rgba(17,144,201,0.4) 100%)!important}#bottom-bar{background:#232629 none repeat scroll center top}h2.vc_custom_heading{color:#4a66d6;filter:saturate(4)}h4.vc_custom_heading{color:black;filter:saturate(4)}.vc_row:not(.vc_gitem_row):not(.vc_grid) .vc_col-sm-3{padding-left:2px;padding-right:2px}.ult_pricing_table h3{font-weight:800!important}.filter-style-material.bold-icons .filter .sort-by-date{background-image:url("data:image/svg+xml,%3Csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20enable-background='new%200%200%2016%2016'%20xml:space='preserve'%3E%3Cpath%20fill='%23333333'%20d='M10.747,3.146l-0.048-1.713c0-0.426,0.327-0.624,0.754-0.624c0.426,0,0.792,0.198,0.792,0.624v1.72c0,0.427-0.335,0.656-0.761,0.656C11.058,3.81,10.747,3.573,10.747,3.146z%20M4.531,3.825c0.427,0,0.81-0.115,0.81-0.542V1.367c0-0.426-0.398-0.557-0.825-0.557c-0.426,0-0.721,0.131-0.721,0.557l0.002,1.865C3.797,3.658,4.105,3.825,4.531,3.825z%20M14.991,14.79H1.009V2.042h1.853v0.788c0,0.94,0.311,1.995,1.639,1.98c1.422-0.016,1.771-1.041,1.771-1.98V2.042h3.496v0.792c0,0.939,0.436,1.96,1.732,1.977c1.25,0.016,1.681-1.038,1.681-1.977V2.042h1.811V14.79z%20M5.892,9.716H3.708v2.188h2.185V9.716z%20M5.892,6.717H3.708v2.186h2.185V6.717z%20M9.109,9.716H6.921v2.188h2.188V9.716z%20M9.109,6.717H6.921v2.186h2.188V6.717z%20M12.294,9.716h-2.188v2.188h2.188V9.716z%20M12.294,6.717h-2.188v2.186h2.188V6.717z'/%3E%3C/svg%3E")!important}.filter-style-material.bold-icons .filter .sort-by-name{background-image:url("data:image/svg+xml,%3Csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20enable-background='new%200%200%2016%2016'%20fill='%23333333'%20xml:space='preserve'%3E%3Cpath%20d='M2.719,8.955h3L6.25,11H8.5l-3-8.984H3L0,11h2.203L2.719,8.955z%20M4.219,4L5.14,7.122L3.298,7.112L4.219,4z'/%3E%3Cpolygon%20points='14.973,9.219%2011.688,9.266%2014.973,5.531%2014.952,4.039%209.196,4.039%209.214,5.486%209.203,5.828%2012.359,5.833%209.062,9.547%209.062,11%2014.973,11%20'/%3E%3Crect%20y='14'%20width='15.703'%20height='2'/%3E%3Crect%20x='-2.734'%20y='6.535'%20width='0.031'%20height='0.074'/%3E%3C/svg%3E")!important}.filter-style-material.bold-icons .filter .sort-by-desc{background-image:url("data:image/svg+xml,%3Csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20enable-background='new%200%200%2016%2016'%20fill='%23333333'%20xml:space='preserve'%3E%3Crect%20x='8'%20y='3'%20width='8'%20height='2'/%3E%3Crect%20x='8'%20y='7'%20width='7'%20height='2'/%3E%3Crect%20x='8'%20y='11'%20width='6'%20height='2'/%3E%3Cpolygon%20points='4,1%202,1%202,11%200,11%203,14.875%206,11%204,11%20'/%3E%3C/svg%3E")!important}.filter-style-material.bold-icons .filter .sort-by-asc{background-image:url("data:image/svg+xml,%3Csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20enable-background='new%200%200%2016%2016'%20fill='%23333333'%20xml:space='preserve'%3E%3Crect%20x='8'%20y='3'%20width='8'%20height='2'/%3E%3Crect%20x='8'%20y='7'%20width='7'%20height='2'/%3E%3Crect%20x='8'%20y='11'%20width='6'%20height='2'/%3E%3Cpolygon%20points='4,14.875%202,14.875%202,4.875%200,4.875%203,1%206,4.875%204,4.875%20'/%3E%3C/svg%3E")!important}.filter-extras a::after,.filter-switch-toggle::after{position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px;width:40px;height:40px;border-radius:50%;content:"";opacity:0;pointer-events:none;background:#F00 none repeat scroll 0 0}.accent-gradient #page .post .blog-content .entry-title a:hover{background:inherit!important;-webkit-background-clip:inherit;-webkit-text-fill-color:inherit!important}.Zebra_Tooltip .Zebra_Tooltip_Message{font-size:11px;margin-top:20px}.vc_cta3-container::after,.vc_cta3-container::before{display:table;content:' '}.vc_cta3-container{margin-bottom:35px;margin-left:auto;margin-right:auto}.vc_general.vc_cta3 h2,.vc_general.vc_cta3 h4{margin-top:0;margin-left:0;margin-right:0}.vc_general.vc_cta3.vc_cta3-color-classic.vc_cta3-style-outline{border-color:#f0f0f0!important;background-color:transparent}.vc_general.vc_cta3.vc_cta3-shape-square{border-radius:0}.vc_general.vc_cta3.vc_cta3-style-outline{border-width:3px}.vc_general.vc_cta3{border:1px solid transparent;font-size:1em;padding:28px;word-wrap:break-word}.vc_general.vc_cta3.vc_cta3-actions-bottom .vc_cta3-content{margin-bottom:1em}.vc_general.vc_cta3.vc_cta3-align-justify .vc_cta3-content{text-align:justify}.vc_general.vc_cta3 .vc_cta3-content{vertical-align:top}.vc_general.vc_cta3.vc_cta3-color-classic.vc_cta3-style-outline .vc_cta3-content-header{color:#f0f0f0}.vc_general.vc_cta3 .vc_cta3-content>:last-child,.vc_general.vc_cta3 .vc_cta3-icons>:last-child{margin-bottom:0}.vc_general.vc_cta3 .vc_cta3-actions{vertical-align:middle!important}.vc_general.vc_cta3 .vc_cta3-actions .vc_btn3-container{margin:0!important}.vc_general.vc_btn3-container.vc_btn3-inline{display:inline-block!important;vertical-align:top!important}.vc_general.vc_btn3-container{display:block!important;margin-bottom:21.74px!important;max-width:100%!important}.vc_btn3-container.vc_btn3-inline{display:inline-block!important;vertical-align:top!important}.vc_btn3-container{display:block!important;margin-bottom:22px!important;max-width:100%!important}.vc_general.vc_btn3.vc_btn3-size-md.vc_btn3-style-outline,.vc_general.vc_btn3.vc_btn3-size-md.vc_btn3-style-outline-custom{padding:13px 19px!important}.vc_general.vc_btn3.vc_btn3-style-outline,.vc_general.vc_btn3.vc_btn3-style-outline-custom{padding:13px 19px!important}.vc_general.vc_btn3.vc_btn3-size-md{font-size:14px!important;padding:14px 20px!important}.vc_general.vc_btn3.vc_btn3-shape-rounded{border-radius:5px!important}.vc_general.vc_btn3.vc_btn3-style-outline,.vc_general.vc_btn3.vc_btn3-style-outline-custom,.vc_general.vc_btn3.vc_btn3-style-outline-custom:focus,.vc_general.vc_btn3.vc_btn3-style-outline-custom:hover,.vc_general.vc_btn3.vc_btn3-style-outline:focus,.vc_general.vc_btn3.vc_btn3-style-outline:hover{border-width:2px}.vc_general.vc_btn3.vc_btn3-icon-left{text-align:left}.vc_general.vc_btn3.vc_btn3-icon-left,.vc_btn3.vc_btn3-icon-right{position:relative}.vc_general.vc_btn3{display:inline-block;margin-bottom:0;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;background-color:transparent;color:#5472d2;border:1px solid transparent;box-sizing:border-box;word-wrap:break-word;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;top:0;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;line-height:normal;font-size:14px;padding:14px 20px}.vc_general.vc_btn3,.wpb_button:hover,a.wpb_button_a,a.wpb_button_a:hover{text-decoration:none}.wf-container-main .error{color:#ff0036;filter:saturate(4);width:500px;margin-top:20px;float:left;padding:2px 5px;font-weight:700}.wf-container-main .setupform{margin-left:20px}.wf-container-main .registercolumn{width:330px;margin-top:10px;padding-bottom:0}.wf-container-main .registercolumn #user_name,.wf-container-main .registercolumn #user_email,.wf-container-main .registercolumn #pass1{float:right;margin-bottom:25px;margin-top:-5px}.wf-container-main .registercolumn #pass2{float:right;margin-bottom:25px;margin-top:-5px}.wf-container-main .registercolumn .hint{float:right;margin-bottom:25px;margin-top:-25px;text-align:right}.wf-container-main .registercolumn,.registercolumnclear{clear:both}.wf-container-main .submit{float:right}.sidebar .tml-user-login-wrap>label:nth-child(1),.sidebar .tml-user-pass-wrap>label:nth-child(1){display:none}.sidebar .tml-user-login-wrap{margin-bottom:0}.sidebar .tml-user-pass-wrap{margin-bottom:20px}.sidebar #user_login1{margin-top:0}.vc_column_container{padding-left:0!important;padding-right:0!important}@media(min-width:768px){.vc_col-sm-1,.vc_col-sm-10,.vc_col-sm-11,.vc_col-sm-12,.vc_col-sm-2,.vc_col-sm-3,.vc_col-sm-4,.vc_col-sm-5,.vc_col-sm-6,.vc_col-sm-7,.vc_col-sm-8,.vc_col-sm-9{float:left}.vc_col-sm-12{width:100%!important}.vc_col-sm-11{width:91.66666667%}.vc_col-sm-10{width:83.33333333%}.vc_col-sm-9{width:75%}.vc_col-sm-8{width:66.66666667%}.vc_col-sm-7{width:58.33333333%}.vc_col-sm-6{width:50%}.vc_col-sm-5{width:41.66666667%}.vc_col-sm-4{width:33.33333333%}.vc_col-sm-3{width:25%}.vc_col-sm-2{width:16.66666667%}.vc_col-sm-1{width:8.33333333%}.vc_col-sm-pull-12{right:100%}.vc_col-sm-pull-11{right:91.66666667%}.vc_col-sm-pull-10{right:83.33333333%}.vc_col-sm-pull-9{right:75%}.vc_col-sm-pull-8{right:66.66666667%}.vc_col-sm-pull-7{right:58.33333333%}.vc_col-sm-pull-6{right:50%}.vc_col-sm-pull-5{right:41.66666667%}.vc_col-sm-pull-4{right:33.33333333%}.vc_col-sm-pull-3{right:25%}.vc_col-sm-pull-2{right:16.66666667%}.vc_col-sm-pull-1{right:8.33333333%}.vc_col-sm-pull-0{right:auto}.vc_col-sm-push-12{left:100%}.vc_col-sm-push-11{left:91.66666667%}.vc_col-sm-push-10{left:83.33333333%}.vc_col-sm-push-9{left:75%}.vc_col-sm-push-8{left:66.66666667%}.vc_col-sm-push-7{left:58.33333333%}.vc_col-sm-push-6{left:50%}.vc_col-sm-push-5{left:41.66666667%}.vc_col-sm-push-4{left:33.33333333%}.vc_col-sm-push-3{left:25%}.vc_col-sm-push-2{left:16.66666667%}.vc_col-sm-push-1{left:8.33333333%}.vc_col-sm-push-0{left:auto}.vc_col-sm-offset-12{margin-left:100%}.vc_col-sm-offset-11{margin-left:91.66666667%}.vc_col-sm-offset-10{margin-left:83.33333333%}.vc_col-sm-offset-9{margin-left:75%}.vc_col-sm-offset-8{margin-left:66.66666667%}.vc_col-sm-offset-7{margin-left:58.33333333%}.vc_col-sm-offset-6{margin-left:50%}.vc_col-sm-offset-5{margin-left:41.66666667%}.vc_col-sm-offset-4{margin-left:33.33333333%}.vc_col-sm-offset-3{margin-left:25%}.vc_col-sm-offset-2{margin-left:16.66666667%}.vc_col-sm-offset-1{margin-left:8.33333333%}.vc_col-sm-offset-0{margin-left:0}} @media(min-width:992px){.vc_col-md-1,.vc_col-md-10,.vc_col-md-11,.vc_col-md-12,.vc_col-md-2,.vc_col-md-3,.vc_col-md-4,.vc_col-md-5,.vc_col-md-6,.vc_col-md-7,.vc_col-md-8,.vc_col-md-9{float:left}.vc_col-md-12{width:100%}.vc_col-md-11{width:91.66666667%}.vc_col-md-10{width:83.33333333%}.vc_col-md-9{width:75%}.vc_col-md-8{width:66.66666667%}.vc_col-md-7{width:58.33333333%}.vc_col-md-6{width:50%}.vc_col-md-5{width:41.66666667%}.vc_col-md-4{width:33.33333333%}.vc_col-md-3{width:25%}.vc_col-md-2{width:16.66666667%}.vc_col-md-1{width:8.33333333%}.vc_col-md-pull-12{right:100%}.vc_col-md-pull-11{right:91.66666667%}.vc_col-md-pull-10{right:83.33333333%}.vc_col-md-pull-9{right:75%}.vc_col-md-pull-8{right:66.66666667%}.vc_col-md-pull-7{right:58.33333333%}.vc_col-md-pull-6{right:50%}.vc_col-md-pull-5{right:41.66666667%}.vc_col-md-pull-4{right:33.33333333%}.vc_col-md-pull-3{right:25%}.vc_col-md-pull-2{right:16.66666667%}.vc_col-md-pull-1{right:8.33333333%}.vc_col-md-pull-0{right:auto}.vc_col-md-push-12{left:100%}.vc_col-md-push-11{left:91.66666667%}.vc_col-md-push-10{left:83.33333333%}.vc_col-md-push-9{left:75%}.vc_col-md-push-8{left:66.66666667%}.vc_col-md-push-7{left:58.33333333%}.vc_col-md-push-6{left:50%}.vc_col-md-push-5{left:41.66666667%}.vc_col-md-push-4{left:33.33333333%}.vc_col-md-push-3{left:25%}.vc_col-md-push-2{left:16.66666667%}.vc_col-md-push-1{left:8.33333333%}.vc_col-md-push-0{left:auto}.vc_col-md-offset-12{margin-left:100%}.vc_col-md-offset-11{margin-left:91.66666667%}.vc_col-md-offset-10{margin-left:83.33333333%}.vc_col-md-offset-9{margin-left:75%}.vc_col-md-offset-8{margin-left:66.66666667%}.vc_col-md-offset-7{margin-left:58.33333333%}.vc_col-md-offset-6{margin-left:50%}.vc_col-md-offset-5{margin-left:41.66666667%}.vc_col-md-offset-4{margin-left:33.33333333%}.vc_col-md-offset-3{margin-left:25%}.vc_col-md-offset-2{margin-left:16.66666667%}.vc_col-md-offset-1{margin-left:8.33333333%}.vc_col-md-offset-0{margin-left:0}} @media(min-width:1200px){.vc_hidden-lg{display:none!important}.vc_col-lg-1,.vc_col-lg-10,.vc_col-lg-11,.vc_col-lg-12,.vc_col-lg-2,.vc_col-lg-3,.vc_col-lg-4,.vc_col-lg-5,.vc_col-lg-6,.vc_col-lg-7,.vc_col-lg-8,.vc_col-lg-9{float:left}.vc_col-lg-12{width:100%}.vc_col-lg-11{width:91.66666667%}.vc_col-lg-10{width:83.33333333%}.vc_col-lg-9{width:75%}.vc_col-lg-8{width:66.66666667%}.vc_col-lg-7{width:58.33333333%}.vc_col-lg-6{width:50%}.vc_col-lg-5{width:41.66666667%}.vc_col-lg-4{width:33.33333333%}.vc_col-lg-3{width:25%}.vc_col-lg-2{width:16.66666667%}.vc_col-lg-1{width:8.33333333%}.vc_col-lg-pull-12{right:100%}.vc_col-lg-pull-11{right:91.66666667%}.vc_col-lg-pull-10{right:83.33333333%}.vc_col-lg-pull-9{right:75%}.vc_col-lg-pull-8{right:66.66666667%}.vc_col-lg-pull-7{right:58.33333333%}.vc_col-lg-pull-6{right:50%}.vc_col-lg-pull-5{right:41.66666667%}.vc_col-lg-pull-4{right:33.33333333%}.vc_col-lg-pull-3{right:25%}.vc_col-lg-pull-2{right:16.66666667%}.vc_col-lg-pull-1{right:8.33333333%}.vc_col-lg-pull-0{right:auto}.vc_col-lg-push-12{left:100%}.vc_col-lg-push-11{left:91.66666667%}.vc_col-lg-push-10{left:83.33333333%}.vc_col-lg-push-9{left:75%}.vc_col-lg-push-8{left:66.66666667%}.vc_col-lg-push-7{left:58.33333333%}.vc_col-lg-push-6{left:50%}.vc_col-lg-push-5{left:41.66666667%}.vc_col-lg-push-4{left:33.33333333%}.vc_col-lg-push-3{left:25%}.vc_col-lg-push-2{left:16.66666667%}.vc_col-lg-push-1{left:8.33333333%}.vc_col-lg-push-0{left:auto}.vc_col-lg-offset-12{margin-left:100%}.vc_col-lg-offset-11{margin-left:91.66666667%}.vc_col-lg-offset-10{margin-left:83.33333333%}.vc_col-lg-offset-9{margin-left:75%}.vc_col-lg-offset-8{margin-left:66.66666667%}.vc_col-lg-offset-7{margin-left:58.33333333%}.vc_col-lg-offset-6{margin-left:50%}.vc_col-lg-offset-5{margin-left:41.66666667%}.vc_col-lg-offset-4{margin-left:33.33333333%}.vc_col-lg-offset-3{margin-left:25%}.vc_col-lg-offset-2{margin-left:16.66666667%}.vc_col-lg-offset-1{margin-left:8.33333333%}.vc_col-lg-offset-0{margin-left:0}.vc_el-clearfix-lg{clear:both}} .vc_col-lg-1,.vc_col-lg-10,.vc_col-lg-11,.vc_col-lg-12,.vc_col-lg-2,.vc_col-lg-3,.vc_col-lg-4,.vc_col-lg-5,.vc_col-lg-6,.vc_col-lg-7,.vc_col-lg-8,.vc_col-lg-9,.vc_col-md-1,.vc_col-md-10,.vc_col-md-11,.vc_col-md-12,.vc_col-md-2,.vc_col-md-3,.vc_col-md-4,.vc_col-md-5,.vc_col-md-6,.vc_col-md-7,.vc_col-md-8,.vc_col-md-9,.vc_col-sm-1,.vc_col-sm-10,.vc_col-sm-11,.vc_col-sm-12,.vc_col-sm-2,.vc_col-sm-3,.vc_col-sm-4,.vc_col-sm-5,.vc_col-sm-6,.vc_col-sm-7,.vc_col-sm-8,.vc_col-sm-9,.vc_col-xs-1,.vc_col-xs-10,.vc_col-xs-11,.vc_col-xs-12,.vc_col-xs-2,.vc_col-xs-3,.vc_col-xs-4,.vc_col-xs-5,.vc_col-xs-6,.vc_col-xs-7,.vc_col-xs-8,.vc_col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.vc_col-xs-12,.vc_column_container{width:100%}.vc_column_container>.vc_column-inner{box-sizing:border-box;padding-left:15px;padding-right:15px;width:100%}.vc_column-inner::after,.vc_column-inner::before{content:" ";display:table}.wpb_button,.wpb_content_element,ul.wpb_thumbnails-fluid>li{margin-bottom:35px}#content .wpb_alert p:last-child,#content .wpb_text_column :last-child,#content .wpb_text_column p:last-child,.vc_message_box>p:last-child,.wpb_alert p:last-child,.wpb_text_column :last-child,.wpb_text_column p:last-child{margin-bottom:0}.layout-list .blog-media .alignleft{margin-right:20px!important}@media screen and (min-width:360px){body .layout-list .blog-media,body #content div.blog-media.wf-td{max-width:110px!important;min-width:110px!important;float:left!important}body div.blog-content.wf-td{float:right!important;width:-moz-calc(100% - 110px)!important;width:-o-calc(100% - 110px)!important;width:-webkit-calc(100% - 110px)!important;width:calc(100% - 110px)!important}} @media screen and (max-width:359px){body div.blog-media.wf-td,body .layout-list .blog-media{max-width:110px!important;min-width:88px!important}body div.blog-content.wf-td{float:!important}} #bottom-bar .mini-nav ul{line-height:22px!important}#bottom-bar .hasCustomSelect option:nth-child(n){color:#308adf!important;-webkit-text-fill-color:#308adf;height:1.5em!important;font-weight:800!important;display:flex!important;padding-top:.4em;font-size:18px}#bottom-bar .mini-nav ul>li.act>a .menu-item-text,#bottom-bar .mini-nav>ul>li>a:hover .menu-item-text,#bottom-bar .customSelect.customSelectHover{text-decoration:none!important}#bottom-bar .wf-float-left:last-of-type{margin-bottom:10px}#theme-my-login1>ul>li:nth-child(n){margin-bottom:10px}`; const subst = `$1\n`; // The substituted value will be contained in the result variable const result = str.replace(regex, subst); console.log('Substitution result: ', result);

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for JavaScript, please visit: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions