Last active
December 14, 2015 09:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(^\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