Delete a character from a string
Posted: January 16th, 2025, 3:55 am
Hello
I would like to know how to delete a character from a string knowing that I have a loop that looks for a comma in the last character and deletes it.
example
string = a,b,c,d,e,f,,,,,,,
it becomes
new_string = a,b,c,d,e,f
when the loop finds that there is no comma in the last character, it stops
(input is not a multigroup, it's just a chekbox)
thank you very much
I would like to know how to delete a character from a string knowing that I have a loop that looks for a comma in the last character and deletes it.
example
string = a,b,c,d,e,f,,,,,,,
it becomes
new_string = a,b,c,d,e,f
when the loop finds that there is no comma in the last character, it stops
(input is not a multigroup, it's just a chekbox)
thank you very much