Replace character at aparticular index of a string
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 08:27 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2022 09:39 AM
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
Reply
