Skip to content

Instantly share code, notes, and snippets.

@wheresrhys
Last active December 14, 2015 09:29
Show Gist options
  • Save wheresrhys/5064989 to your computer and use it in GitHub Desktop.
Save wheresrhys/5064989 to your computer and use it in GitHub Desktop.
Regex for removing (most) style rules from within CSS selectors - useful for copying all your selectors into a different stylesheet section using a media query
(^\s+[a-z\-]+\s?\:[a-z0-9#\s\-,\'"%\(\)]+;\n?\r?)+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment