How to remove duplicate letters from the string without changing case of letters
input "Deleted"
output "Delt"
Discussion posts and replies are publicly visible
Hi vickyr583585 ,
you can try with below code.
a!localVariables( local!input: "appian", local!chars: char(code(local!input)), local!char: a!forEach( items: union(local!chars, local!chars), expression: left(cleanwith(local!input, fv!item), 1), ), joinarray(local!char))
If the text has different cases like in "Deleted' - d comes twice in lower as well as upper case - then this does not yield expected output.