kaven-basic - v6.0.0
    Preparing search index...

    Function GetStringPositionBetween

    • Finds all substrings in the given string that are located between the specified start and end delimiters.

      Parameters

      • str: string

        The source string to search within.

      • start: string

        The starting delimiter string.

      • end: string

        The ending delimiter string.

      • max: number = -1

        The maximum number of matches to find. If set to -1, all matches are returned. Defaults to -1.

      • startIndex: number = 0

        The index in the source string to start searching from. Defaults to 0.

      Returns StringPosition[]

      An array of StringPosition objects representing the positions of substrings found between the delimiters.

      • The function searches for non-overlapping occurrences of substrings between start and end.
      • Each StringPosition contains the start and end indices of the found substring, as well as the substring itself in the RelatedString property.
      • If either delimiter is not found, or if the input parameters are invalid, an empty array is returned.

      1.1.7

      2025-06-26