You need to sign in to do that
Don't have an account?
Ab
removing semi colon from the text in apex
Hello,
I am receiving a vales from api.
instead of Value i get "Value", How can i remove the two semicolon if they exsist in apex code.
Thank you for suggetion
I am receiving a vales from api.
instead of Value i get "Value", How can i remove the two semicolon if they exsist in apex code.
Thank you for suggetion
All Answers
Please try the below replace function , it will replace the characters. The example I wrote is for double quotes. This will work with other semicolon, colon etc.
String s1='"'+'Value'+'"';
String s2 = s1.replace('"', '');
Please mark it as best answer if it resolved your issue.
Regards,
Neethu
Thanks,
Parmanand Pathak