There may be a more elegant way to do this, but here is my first solution:
local stringvar input := {table.field};
local stringvar output := input;
local numbervar strlen := length(input);
local numbervar x;
for x := 1 to strlen
do
(
if strlen > 2 and
x <= strlen - 2 and
input[x] in ["a" to "z"] and
input[x+1] in ["a" to "z"] and
input[x+2] in ["a" to "z"]
then (output := left(input,x-1);
x := strlen + 1
);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.