You need to sign in to do that
Don't have an account?
azhar khasim
Need to add & symbol before last word in the string!!!
Hello Everyone,
I had small query
Example 1 :
i have a string = Mom, Dad, Son, Daughter
i want a string = Mom, Dad, Son & Daughter
Example 2 :
i have a string = Mom, Dad, Son
i want a string = Mom, Dad & Son
Please help me to provide a solution for this.
Thanks,
Azar Khasim.
I had small query
Example 1 :
i have a string = Mom, Dad, Son, Daughter
i want a string = Mom, Dad, Son & Daughter
Example 2 :
i have a string = Mom, Dad, Son
i want a string = Mom, Dad & Son
Please help me to provide a solution for this.
Thanks,
Azar Khasim.
If your use case is to always replace the last separating comma in your string, you can use something like this: