I\'d like to parce a CSS file and add before every CSS selector another selector.
From:
p{margin:0 0 10px;} .lead{margin-bottom:20px;font-size:21px;font-
A simple and readable regex is below:
[\#\.\w\-\,\s\n\r\t:]+(?=\s*\{)
you can test it on css code in this tool`