Test, validate and match regular expressions
Matches CSS selectors in stylesheets, capturing the selector portion before a comma or opening brace. It handles various selector types including class, ID, attribute, element, and universal selectors, while excluding declaration blocks. Useful for parsing CSS rules to extract selectors.