Show all Hide all
This function takes a string and removes any trailing substring that matches the supplied trail-parameter.
If the substring is repeated several times in the trail of the string, then all of these occurrences will be removed.
Area of use:
The string in which to remove the trailing substring
The trailing substring to be removed