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

    Function ReplaceAll

    • Replaces all occurrences of a target substring within the input string with a replacement string.

      Parameters

      • input: string

        The original string to perform replacements on.

      • target: string

        The substring to search for within the input string.

      • replacement: string

        The string to replace each occurrence of the target substring.

      Returns string

      A new string with all occurrences of the target substring replaced by the replacement string.

      4.0.0

      2025-07-09

    • Replaces all occurrences of each target substring in the input string with the specified replacement string.

      Parameters

      • input: string

        The original string to perform replacements on.

      • target: string[]

        An array of substrings to be replaced in the input string.

      • replacement: string

        The string to replace each occurrence of the target substrings.

      Returns string

      A new string with all target substrings replaced by the replacement string.

      4.0.0

      2025-07-09

    • Replaces all occurrences of specified target substrings in the input string with their corresponding replacements.

      Parameters

      • input: string

        The original string to perform replacements on.

      • target: string[]

        An array of substrings to be replaced in the input string.

      • replacement: string[]

        An array of replacement strings corresponding to each target substring.

      Returns string

      A new string with all specified targets replaced by their replacements.

      The target and replacement arrays should have the same length. Each occurrence of target[i] in the input will be replaced with replacement[i].

      4.0.0

      2025-07-09