Implement check for kind of selector [Regex introduction](http://onwebdev.blogspot.se/2011/09/javascript-parsing-css-selectors-with.html?m=1) [Selector types](http://www.w3.org/TR/css3-selectors/#selectors) [Regexr](http://www.regexr.com/) - [x] \* Universal selector - [x] E Type selector - [x] .E Class selector - [x] #E Id selector - [x] E[foo] Attribute selectors - [x] E[foo="bar"] Attribute selectors - [ ] E[foo~="bar"] Attribute selectors - [x] E[foo^="bar"] Attribute selectors - [x] E[foo$="bar"] Attribute selectors - [x] E[foo*="bar"] Attribute selectors - [ ] E[foo|="en"] Attribute selectors - [x] E:root Structural pseudo-classes - [ ] E:nth-child(n) Structural pseudo-classes - [ ] E:nth-last-child(n) Structural pseudo-classes - [ ] E:nth-of-type(n) Structural pseudo-classes - [ ] E:nth-last-of-type(n) Structural pseudo-classes - [ ] E:first-child Structural pseudo-classes - [ ] E:last-child Structural pseudo-classes - [ ] E:first-of-type Structural pseudo-classes - [ ] E:last-of-type Structural pseudo-classes - [ ] E:only-child Structural pseudo-classes - [ ] E:only-of-type Structural pseudo-classes - [ ] E:empty Structural pseudo-classes - [ ] E:link The link pseudo-classes - [ ] E:visited - [ ] E:active The user action pseudo-classes - [ ] E:hover - [ ] E:focus - [ ] E:target The target pseudo-class - [ ] E:lang(fr) The :lang() pseudo-class - [ ] E:enabled The UI element states pseudo-classes - [ ] E:disabled - [ ] E:checked The UI element states pseudo-classes - [ ] E::first-line The ::first-line pseudo-element - [ ] E::first-letter The ::first-letter pseudo-element - [ ] E::before The ::before pseudo-element - [ ] E::after The ::after pseudo-element - [x] E.warning Class selectors - [x] E#myid ID selectors - [ ] E:not(s) Negation pseudo-class - [ ] E F Descendant combinator - [ ] E > F Child combinator - [ ] E + F Adjacent sibling combinator - [ ] E ~ F General sibling combinator
Implement check for kind of selector
Regex introduction
Selector types
Regexr