Test, validate and match regular expressions
Matches HTML/Svelte class attributes, including Svelte's class:directive syntax (e.g., class:active={bool}), capturing the assigned class value string. Also matches TailwindCSS @apply statements in CSS, capturing the utility classes applied before an optional semicolon. Useful for extracting, auditing, or linting CSS class names in Svelte projects using TailwindCSS across templates and style blocks.