Regular Expressions 101

Community Patterns

1...45678...901

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
^ (?#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 - 4 years ago