Match color code for regexp