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...
In reply to Re^2: Remove substring
by cees
in thread Remove substring
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |