Skip to content

bmel:replace

Category: String · Returns: bmel:string

bmel:replace(expr: bmel:string, from: bmel:string, to: bmel:string)

Description

Replaces all occurrences of a substring within the expression with a new value.

Arguments

Parameter Type Required Description
expr bmel:string The source string.
from bmel:string The substring to search for and replace.
to bmel:string The replacement string.

Example

bmel:replace({order:Response Payload}.$.phone, "-", "")

Back to BMEL Reference