Jump to content

Function to remove predifined characters from the end of the string


pioneerx01

Recommended Posts

I have sen this function before but can not remember what it is or how to code it. It allows you remove only defined characters from the end of the string. I am not looking to replace any occurrence anywhere in the phrase, just the end.

 

For example lets say I want to remove"ld!" from phrase "Hello World!" That function would return "Hello Wor"

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.