Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
[#.][-_]?[_a-zA-Z]+(?:\w|\\.)*|(?<=\s+|^)(?:\w+|\*)|\[[^\s"'=<>`]+?(?<![~|^$*])([~|^$*]?=(?:['"].*['"]|[^\s"'=<>`]+))?\]|:[\w-]+(?:\(.*\))?
/
gm

Description
Created·2023-01-27 08:55
Updated·2023-01-27 10:44
Type·Match
Flavor·JavaScript

Matches all types of CSS selectors

Submitted by Anonymous
Open Workspace