This article will cover how to use regular expressions (RegEx) to match and replace data.
1. Add RegEx Replace in Your Dataflow
2. RegEx Replace Options
Add RegEx Replace to any node in your Dataflow. Select any node and use the Transform (+) button to open the list of options to select RegEx Replace. You could work with the node in the Dataflow tab or use the Properties panel.
RegEx Replace node has four fields to help replace values in structured data. Read along to see how we remove the gender suffix from sample data.
The first dropdown lets you choose which data field you want to change.
The Match field is a textbox used to type a regular expression to find data with specific criteria.
Note: A column can only be used once (in a single operation row). Click on the Replace Another button to add a new RegEx condition.
The third field lets you choose from two RegEx flags.
Note: You may select either Global, Case Insensitive, or both.
The third option lets you determine which value to replace.
Here's what the sample data looks like after our regular expression.