Replace the color regex with a regex that removes CSS rules and URLS, keeping only the classes and the ids.