Search/replace and a limited set of colors

Some detail would possibly be useful.