I'm using UltraEdit's (on a Mac) Find and Replace In Files with regular expressions to clean up SQL Server code blocks in multiple files. And I am noticing that Find in Files outputs expected result, but Replace In Files does not make the replaces as expected.
For example, convert lower case case-when-then
blocks to upper case CASE-WHEN-THEN
:
FIND IN FILES
case*when*then
correctly finds this line:
case when a1c.optimum = 1 and ldl.optimum = 1 and sbp.optimum = 1 and dbp.optimum = 1 then 1 else 0 end optimum,
REPLACE IN FILES
case*when*then
to CASE*WHEN*THEN
results for the line above in following line with when
and then
not replaced as expected to upper case words:
CASE*WHEN*THEN 1 else 0 end optimum,
What is wrong on Replace In Files?