Question
Bentego
TR
Last activity: 2 Nov 2023 7:57 EDT
How Can I replace the first character of the string
Hi all,
I want to find and replace to first character of the string.I used all replace functions but i don't find the any answer for my question.
For example; my string is : /Baris/Pega/dev I want to replace "/" to "" the first character but replaceAll function replace all "/" characters. I tryed to use startsWith funtion with replaceAll functions but it doesnt work.Like this:
if(@String.startsWith(.PushMessageBody,"/"),@replaceAll(.PushMessageBody,"/",""),.PushMessageBody)
Thank you.
***Edited by Moderator Marije to change type from Pega Academy to Product; update capability tags***