By using find or search we are getting only first index, but i want to get all the indexes of the particular character in a string.
Eg: local!variable:{"Appian | Documentation | Appian |Community},
I want to get the indexes of this symbol "|"
Discussion posts and replies are publicly visible
sravanin0005 you can try this
a!localVariables( local!string: {"Appian | Documentation | Appian |Community"}, local!stringArray: lower(touniformstring(char(code(local!string)))), wherecontains(tostring("|"),local!stringArray) )
Thank you ujjwalb0003, it is working,
I have another doubt i want remove above indexes characters in string, how can do that?
a!localVariables( local!string: {"Appian | Documentation | Appian |Community"}, local!stringArray: lower(touniformstring(char(code(local!string)))), local!index: wherecontains(tostring("|"),local!stringArray), joinarray(remove( local!stringArray, local!index ),"") )
Thank you so much, working good
Why not use substitute("string | string", "|")
yes, if i am using the substitute function, i am getting the result
Thank you