It is, kind of. When I set out to make that expression a couple of years ago, I figured it was impossible (for me) but I wanted to give it a try. I was surprised at how quickly it came together.
Quote:
can you again regroup the ones which are identical?
|
I never bothered to work the other end because usually most of the stacked rules get swept to the great Bitbucket in the Sky. The only likely path to developing such a regex that I can think of is to have a regex that works on marked text only, within the CSS file. That is, a person wishing to "re-stack" identical rules would have to manually select the identical rules first. This really would not save much labor over doing the restacking manually, so I didn't bother to go into it.