I\'d like to match when /(\\sclassName|^className)/ is satisfied, but when selecting css. Hypothetically I would use like:
/(\\sclassName|^className)/
You can use the following selectors to select any element whose class either starts with "icon-" or contains " icon-" (note the space at the start):
"icon-"
" icon-"
[class^="icon-"], [class*=" icon-"] { ... }
JSFiddle demo.