Since $ does not match a newline or carriage return, I should be more explicit. Sample \n?\r? seemed to help.
My last regex:
^\s*color: #3f3f3f;\n?\r?
You may need to change it depending on line endings. I think ^\s*color: #3f3f3f;\n?\r?\n? should be pretty versatile.
source share