JXtension - String.remove(start, end)

Purpose:
Gives the user the ability to remove a specified amount of characters from a string.

Parameters:

[ start ] The starting index for the substring that you would like to remove.  If omitted, this will default to 0.
[ end ] The ending index for the substring that you would like to remove.  If omitted, this will default to the last index of the string.

Returns:
The string with the specified substring removed.

Example #1:
The example below will remove the substring which starts at 22 and ends at 29.

 

Example #2:
The example below will remove all of the substring starting at 22:

 

Example #3:
The example below will remove all of the substring ending at 10.

 

See also: