The Find and Replace stage uses exact string matching to standardize or remove a set of specific passages, phrases, or words from a document field.This stage is configured with one or more rules. Each rule specifies:
One or more text strings to search for matching text (phrases or words)
A single text string that is the replacement value
ImportantWhen the replacement string is empty, the system deletes the matched text from the document field.
Configure the Find and Replace stage in one of the following ways:
One example could be to remove the country information and replace it with the phrase: country not displayed for security purposes to make the data anonymous for reporting.
The document field to scan is country.
The name of the .lst file in this example is country.lst. An excerpt is:
AfghanistanAfriqueAlbaniaAlbanieAlderneyAlgeriaAlgérieAllemagneAmericaAmériqueAmériquesAmerican SamoaAndorraAndorreAngleterreAnglo-NormandesAngolaAnguillaAntigua and BarbudaAntigua et BarbudaAntillesAntilles NéerlandaisesArabie SaouditeArgentinaArgentineArménieAruba
The value of the replacement text is: country not displayed for security purposes.
If the text of the passages scanned includes any of the items in the country.lst file, it is replaced with the phrase: country not displayed for security purposes.
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.