Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

with

with(((V, U) → R) → X, (V, U) → R): X

When used with replace, with applies the specified function.

Transform

        
     
1
2
3
4
%dw 2.0
output application/json
---
ssn: "987-65-4321" replace /[0-9]/ with("x")
Output

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