Hi mrainey56!
Your code will not be compiled by UltraEdit because a Replace command can be only immediately after a Find command. But following will work:
Loop
xFind "find string"
Replace All "replace string"
IfNotFound
ExitLoop
EndIf
EndLoop
I use this very often in my macros. Specify for
x the maximum number of iterations. But most Replace All must be executed only once. My macros to delete all blank lines at
Deleting blank lines using Perl regular expressions shows an exception where a Replace All in a Loop is really needed.
Just for your info: As DaveS detected, every Find in a macro is in real a Find with Replace with identical search and replace string. You can see that if you view a macro file in hex edit mode which contains only 1 Find but the find string is twice in the file. So IfFound and IfNotFound can be also used immediately after a Replace command because internally a Find only is in real also a Find with Replace.