Build, test, and debug regular expressions
This regex matches CSS class selector rules, starting with a dot followed by an optional hyphen and a valid CSS class name (letters, digits, hyphens, underscores). It captures the entire declaration block within braces, including nested or multi-line content, using the 's' flag for dot matching newlines. Useful for extracting or analyzing class-based styles from CSS files.