Regular Expressions 101

Library entries

BEM

Vote

2

Regular Expression
pcre

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

Loading markdown...
Submitted by anonymous - a year ago