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

    Function ReplaceAllStringBetween

    • Replaces all substrings found between the specified start and end delimiters in the input string, using the provided replacer function to generate the replacement for each match.

      The function searches for all non-overlapping occurrences of substrings between start and end within input, and replaces each occurrence by invoking replacer with the matched substring.

      Parameters

      • replacer: TReplaceFunction<string>

        A function that takes the matched substring and returns the replacement string.

      • input: string

        The input string to process.

      • start: string

        The starting delimiter string.

      • end: string

        The ending delimiter string.

      Returns string

      The resulting string after all replacements have been made.

      1.1.7

      2021-12-07