Contact Free trial Login


with(((V, U) -> R) -> X, (V, U) -> R): X

When used with replace, with passes a replacement.


This example replaces all numbers in a string with "x" characters.


%dw 2.0
output application/json
{ "ssn" : "987-65-4321" replace /[0-9]/ with("x") }


{ "ssn": "xxx-xx-xxxx" }

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.