• Returns the first occurrence of the substring between the specified start and end needles. If the start needle is not found, returns the original string. If the end needle is not found, returns the substring from after the start needle to the end of the string.

    Parameters

    • value: string

      Input string

    • start: string

      The starting needle

    • end: string

      The ending needle

    Returns string