Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(@.*?:[^}{@]+(\{(?:[^}{]+|\{(?:[^}{]+|\{[^}{]*\})*\})*\}))
/
g
Input 1
CSS @media selector .CSS Code sample test @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 } } @-webkit-keyframes fadeIn {0% { opacity: 0; }100% { opacity: 1; }} @media screen and (max-width:200px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} .widget_1 {padding-right:0} } /* TEST NESTED @media: */ @media screen and (max-width:200px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} /* TEST NESTED @media capturing everything, comments too */ @media screen and (max-width:359px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} .widget_1 {padding-rig
Substitution
CSS @media selector .CSS Code sample test @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 } } @-webkit-keyframes fadeIn {0% { opacity: 0; }100% { opacity: 1; }} @media screen and (max-width:200px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} .widget_1 {padding-right:0} } /* TEST NESTED @media: */ @media screen and (max-width:200px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} /* TEST NESTED @media capturing everything, comments too */ @media screen and (max-width:359px){.sidebar-content {margin-bottom:20px} .cat-item {padding:7px} .widget_1 {padding-rig