From Clomosy Docs
function clGetStringTo(mainText,ConditionText:String):String;
In Clomosy, you can use the clGetStringTo function to retrieve text that precedes a character or characters in the text. The basic usage of the clGetStringTo function is as follows:
Example
var mainText,ConditionText,updatedText : String; { mainText = 'AAbBCC'; ConditionText = 'CC'; updatedText = clGetStringTo(mainText,ConditionText); ShowMessage('Updated Text: '+ updatedText); }
Output:
Updated Text: AAbB