The ignore case search and replace flag behaves in an intelligent manner when replacing occurrences of the search string. If the occurrence is all lower case, all upper case or title case, the replace string will be converted into the relevant case when inserted into the buffer.

This automatic conversion is only performed if the replacement string is all-lower case.