cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Replace character at aparticular index of a string

ash42
New Contributor III

HI
i want to replace character at a particular index.I guess snaplogic is not allowing Str.replaceAt() function.Is there any other way to achieve this

1 REPLY 1

SpiroTaleski
Valued Contributor

@ash42

Please find the attached sample pipeline:

str_replace_2022_02_06.slp (6.1 KB)

I am converting the string to array, and use the splice method in order to replace some particular character by index.

This is one of the solutions, and for sure there are another ways for accomplishing this, but I hope this helps.

Regards,
Spiro Taleski