Reputation: 5175
If I have a string = "Hello, my friend!,,,," and I want to delete all that commas from right
"Hello, my friend!,,,,"
so result will be "Hello, my friend!"
"Hello, my friend!"
How to do that?
Upvotes: 1
Views: 92
replace('Hello, my friend!,,,,',',+$','')
Upvotes: 3