Go ahead and refactor those regex/functions into CSSUtils, and then I'll update my code to use them.