replace

The replace is a function of the eval operator that provides a mechanism to replace the content (expressed as string) of a field and to return the value in a new field. Before using replace, create a query that contains string values in its fields. When using replace, the process transforms the data into temporary tables so that the transformation occurs after the main query is executed.

Syntax

Name is not null | eval test = replace(Name, “Response”, “Returned Value”)        

where

Parameters

Replace has three parameters:

How Do I Use This?

Use replace when you want to obfuscate data, improve the context of a field, or make reading the text more intuitive.

You can also use the replace function to replace an entire string.

 

For information about other operators, functions, and syntax requirements, see Use an Operator in the Query.