`[class*="btn-"]` is the move! It’s clean and does exactly what you need for partial class matching.
If you’re paranoid about edge cases (like `old-btn-new`), `[class^="btn-"]` or `[class|="btn"]` might help.
Regex is cool but way heavier. Only use it if CSS can’t hack it.
If you’re paranoid about edge cases (like `old-btn-new`), `[class^="btn-"]` or `[class|="btn"]` might help.
Regex is cool but way heavier. Only use it if CSS can’t hack it.
