Build, test, and debug regular expressions
This regex captures dash-separated words or terms, optionally enclosed in single or double quotes. It requires at least one dash followed by characters, making it ideal for extracting hyphenated phrases or compound identifiers. With the global flag, it finds all matches throughout the input text. Common use cases include parsing CSS class names, extracting compound keywords, or identifying multi-word terms.