Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
2 lines (2 sloc) 254 Bytes
# Works for non-edge case CSS files... it's ugly, but it'll get the bulk of the selectors. It'll also grab font names and a few more things that you probbaly don't want either. Use a SAC parser instead.
/([\.|^\#|^|\s]([\.a-zA-Z0-9_-]+)\s?){1,}[\,|\{]/