Skip to content

REPLACE()

Synopsis

Replace a set of characters in a given string with another character.

Description

Iterates through a string replacing all the find-chars with replace-char. replace-char may be either empty or contain one character. If empty, all find-chars will be deleted from the output.

Note

The replacement only occurs in the output. The original variable is not altered.

Syntax

REPLACE(varname,find-chars[,replace-char])
Arguments
  • varname

  • find-chars

  • replace-char

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT