Code: Select all
Let>Str=When the sins of my mother weigh down in my soul
StringReplace>Str,mother,father,Str
If>Replace_Count=1
GoSub>ReWrite
EndIf
Moderators: Dorian (MJT support), JRL
Code: Select all
Let>Str=When the sins of my mother weigh down in my soul
StringReplace>Str,mother,father,Str
If>Replace_Count=1
GoSub>ReWrite
EndIf
Code: Select all
Let>Str=When the sins of my mother weigh down in my soul
RegEx>mother,Str,0,matches,Replace_Count,1,father,new_Str
If>Replace_Count>0
GoSub>ReWrite
Else
MDL>There were no replacements
EndIf
SRT>ReWrite
MDL>Number of replacements: %Replace_Count%%CRLF%Old String: %Str%%CRLF%New Strng: %new_Str%
End>ReWrite