Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
output application/json
---
{ "ssn" : "987-65-4321" replace /[0-9]/ with("x") }
You're viewing an older version of the documentation. You can switch to the latest version or use the version selector in the left navigation.
Helper function that specifies a replacement element. This function is used with replace, update or mask to perform data substitutions.
| Name | Description |
|---|---|
|
The value to be replaced. |
|
The replacement value for the input value. |