Function substringAfterLast

  • Returns the substring of string after the last instance of searchString, excluding searchString. If searchString is not found, the whole string will be returned.

    Parameters

    • string: string
    • searchString: string
    • caseSensitive: boolean = true

      If true (default) the search will be case-sensitive.

    Returns string