Hi, in my automation I have a string that ends with the string ": CHGnnnnnn" where n is any digit.
I want to remove the " : CHGnnnnnn" part from the string so I am left with the root e.g. "iantest99 : CHG000123" becomes "iantest99".
I have tried
{{varSource.remove(" : CHG[0-9][0-9][0-9][0-9][0-9][0-9]")}} and other variations on the regex, but I can't get it to work. Any ideas ?