Skip to content

Find and replace

Description

The Find And Replace activity replaces values within selected columns based on user-defined rules. This is helpful for standardizing inconsistent text, correcting values, or transforming entries using exact match, partial match, or regular expressions.

Use Case
Replace all occurrences of “HP” with “HP Inc.” in brand_names column or standardize spelling differences (e.g., “Fastrack” to “Fastrack Inc”).


Input

TypeDescription
DataA dataset with one or more columns to update using replacement rules

Output

TypeDescription
Transformed DataThe modified dataset with values replaced as per configuration

Configuration Fields

Field NameRequiredDescription
Column MapYesDefine the columns and their associated replacement rules. Each column will have its own settings.
  • Column NameYesColumn on which replacement rules will apply.
  • Matching ModeYesType of match used to find values:
  • Complete Value
  • Substring
  • Regex Pattern
  • Matching CaseNoSpecify match case:
  • Case-Sensitive
  • Case-Insensitive
ReplacementYesDefine the pairs of values to find and their replacements. Multiple rules can be added.
  • FindYesThe text or pattern to search for.
  • ReplaceYesThe value to replace the matched text with.

Sample Input

product_idproduct_namebrand_names
P001SmartphoneApple, Samsung, Google
P002LaptopDell, HP, Lenovo
P003HeadphonesBose, Sony, Sennheiser
P004TVLG, Samsung, Sony
P005SmartwatchFitbit, Garmin, Apple

Sample Configuration

FieldValue
Column Namebrand_names
Matching ModeSubstring
Matching CaseCase-Insensitive
Find → Replace PairsHP → HP Inc., Fastrack → Fastrack Inc.

Sample Output

product_idproduct_namebrand_names
P001SmartphoneApple, Samsung, Google
P002LaptopDell, HP Inc., Lenovo
P003HeadphonesBose, Sony, Sennheiser
P004TVLG, Samsung, Sony
P005SmartwatchFastrack Inc., Garmin, Apple

Use Regex Pattern for advanced pattern-based replacements like correcting phone numbers, removing special characters, or formatting codes.