Function substringBetweenLast

  • Get the substring between the first occurrence of the specified start and end string. If the end string is not found the substring after the start string is returned. If the start string is not found but the end of the string is found the substring before the end string is returned.

    Parameters

    • value: string

      value to search in

    • start: string

      start string

    • end: string

      end string

    Returns string