I need to execute a regular expression with case conversion in a entire project. If I run
query-replace-regexp in a single file informing
'\,(downcase \1)', it works as expected. But when I try that with
projectile-replace-regexp I get the following error:
Invalid use of ‘\’ in replacement text
I investigated it a bit and it seems that the elisp expression doesn't work when
query-replace-regexp is not called interactively, because if I run
(replace-regexp "'\\([A-Z_]+'\\)" "'\\,(downcase \\1)") I also have the error above.
Am I doing something wrong or is this some limitation? If so, is there another way to achieve this?