Parsing CSS by regex

That just seems too convoluted for a single regular expression. Well, I’m sure that with the right extentions, an advanced user could create the right regex. But then you’d need an even more advanced user to debug it. Instead, I’d suggest using a regex to pull out the pieces, and then tokenising each piece separately. … Read more