JXtension - String.indicesOf(target, start)

Purpose:
Gives the user the ability to find the starting index of multiple instances of a substring within another string.  If the starting index (start) is specified, the search will be carried out in the part of the string after the specified index.

Parameters:

target The substring that you would like to find.
[ start ] The position at which the search for the target should begin.  This parameter is optional.  If omitted, this will default to 0.

Returns:
An array of all the instances of target after the specified start index.  If start is omitted, the array will contain all instances of target.  If target doesn't exist within the string, an empty array is returned.

Example #1:
The code below will find the every index of my first name within the welcome message:

 

Example #2:
The code below will find every index of the letter "e" after the 10th letter (which is the "o" in the word "to"):

 

See also: