Regular Expressions 101

  • PCRE (Legacy)
  • Match
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