trim traling coma(,)

0
I want to trim last coma(,) for example-   input= 1,2,3,                           output=1,2,3 which functionality to use to remove the last (,) coma  
asked
1 answers
1

One way to do it would be:

replaceAll($StringInput, ',$', '')

This will replace a comma at the end of the string (the dollar sign represents the end of the string) with nothing, or return the same string if there was no comma at the end.

answered