Added regex to identify color type

Added regex to identify color type