Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Css Splitter
Open Workspace
PCRE (Legacy)
Unit Tests
Created 2015-02-13 08:35
1
Regular Expression
/
(
\/\*
[
\s\S
]
*?
\*\/
|
[^
}{;
\/
]
+
\{
[^
{}
]
*
\}
|
;
|
}
|
[^
}{;
\*
]
+
\{
)
/
g
Description
Splits the css code into two blocks. (comments|selector block)
Submitted by
@Silent_Coder