Finds the substring after a specific target.

This function is valid in v2.10.0 to v2.20.0. This function has been downloaded 22 times.


{string} subject
The string to search.
{string|RegExp} target
The target to find and key off of within subject.
{number=} opt_occurrence Optional, Default:1
The occurrence of target that you want to key off of within subject. If negative, the occurrence will be counted from the end of subject.


Returns the string found after target. If target was not found or the specified occurrence (opt_occurrence) of target was not found, null will be returned.

Required Function

This function requires the following function which is included automatically:

  • around()
    Gets the substrings around a specific target.