REPLACE (23) FUNCTION (.5)
Name
Value
NAME
REPLACE
MUMPS CODE
X "F %=0:0 S %=$F(X2,X1,%) Q:%<2 S X2=$E(X2,1,%-$L(X1)-1)_X_$E(X2,%,999),%=%-$L(X1)+$L(X)" S X=X2
EXPLANATION
THE 1ST ARGUMENT, WITH ALL OCCURRENCES OF THE 2ND ARGUMENT REPLACED BY THE 3RD