in reply to Re: Remove substring
in thread Remove substring

Just to add to this answer, both of those solutions will alter the original string. If you do not want the original string to be altered, then make a copy first...