From Clomosy Docs
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:
clGetStringTo(mainText, ConditionText'): String
Example:
ShowMessage(clGetStringTo('AAbBCC','CC'));
Output:
AAbB