Skip to content

Regex for selector kind #2

@GGAlanSmithee

Description

@GGAlanSmithee

Implement check for kind of selector

Regex introduction

Selector types

Regexr

  • * Universal selector
  • E Type selector
  • .E Class selector
  • #E Id selector
  • E[foo] Attribute selectors
  • E[foo="bar"] Attribute selectors
  • E[foo~="bar"] Attribute selectors
  • E[foo^="bar"] Attribute selectors
  • E[foo$="bar"] Attribute selectors
  • E[foo*="bar"] Attribute selectors
  • E[foo|="en"] Attribute selectors
  • 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
  • E.warning Class selectors
  • 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions