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 @import statement
Open Workspace
JavaScript
Match
Created 2023-06-07 10:58
0
Regular Expression
/
^
@import
\s
+
(?:
url
\(
[
'"
]
?
.
*?
[
'"
]
?
\)
|
[
'"
]
.
*?
[
'"
]
)(
\s
+
[^
;
]
+?
)?
;
$
/
gim
Description
Matches CSS @import statements with media and layer support
Submitted by
Anonymous