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
BEM
Open Workspace
PCRE (Legacy)
Match
Created 2020-07-15 16:35
2
Regular Expression
/
^
(?#Block)
(?<block>
(?:
[
a
-
z0
-
9
]
+
)(?:
-
[
a
-
z0
-
9
]
+
)*
)
(?:
__
(?#Element)
(?<element>
(?:
[
a
-
z0
-
9
]
+
)(?:
-
[
a
-
z0
-
9
]
+
)*
)
)?
(?:
--
(?#Modifier)
(?<modifier>
(?:
[
a
-
z0
-
9
]
+
)(?:
-
[
a
-
z0
-
9
]
+
)*
)
)?
$
/
gmx
Description
CSS Coding Guideline
BEM
(Block Element Modifier)
Submitted by
Anonymous