From Clomosy Docs
function clGetStringReplace(mainText,oldText,newText:String):String;
In Clomosy, you can use the clGetStringReplace function to replace a character or substring in text with another character or substring.
clGetStringReplace is a useful function for searching and making desired changes in text.
Example
var
mainText,oldText,newText,updatedText : String;
{
mainText = 'AAbBCC';
oldText = 'BB';
newText = 'DD';
updatedText = clGetStringReplace(mainText,oldText,newText);
ShowMessage('Updated Text: '+ updatedText);
}
Output:
Updated Text: AADDCC