I'd like to use grep to find out if/where an html class is used across a bunch of files. The regex pattern should find not only <p class="foo"> but also <p class="foo bar foo-bar">.
So far I'm able to find class="foo" with this example below, can't make it work with multiple classnames:
grep -Ern "class=\"result+(\"| )" *
Any suggestions? Thanks! Mike