Hi Bill,
replace(string, old, new) does not modify the String. It *returns* the
modified String.
If a macro creates an output that is not assigned to a variable, it
prints the output on the Log.
So you need
newString = replace(oldString, old, new);
See
https://imagej.nih.gov/ij/developer/macro/functions.html#replaceMichael
______________________________________________________________________
> I get this result using macOS 10.14.6 and also using Windows 7, both using recent ImageJ 1.52v updates, in all cases with debug mode turned OFF.
>
> Moreover, I'm not sure where I should be looking in the source code to follow the action and understand this. I've tried looking at Functions.java and elsewhere, but haven't sorted this out.
>
> Can anyone point me to an explanation and/or the relevant code?
>
> Thanks,
>
> Bill
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html