I had the same issue as in this thread, but as it happens I have BBEdit, and the regex engine in BBEdit (viz. PCRE) does support case modification in replace. So I’m using an Apply BBEdit Text Factory and doing a grep replace in a BBEdit text factory. It seems to work fine for me so far.
John