Expression Language Reference
    Preparing search index...
    • Substitutes new text for old text in a text string.

      Category: Text

      Parameters

      • text: any

        The text or the reference to a value containing text for which you want to substitute characters.

      • old_text: any

        The text you want to replace.

      • new_text: any

        The text you want to replace old_text with.

      • instance_num: any

        Optional. Specifies which occurrence of old_text you want to replace with new_text. If you specify instance_num, only that instance of old_text is replaced. Otherwise, every occurrence of old_text in text is changed to new_text.

      • ...args: any[]

      Returns any