The Expression Builder on the Feature Definition page has the elements listed below -
The Regular Expression operator is explained in the table below.
Operator | Code Editor | Syntax/Description | Example/Remark |
---|---|---|---|
| Replace(String1, String2, Feature) (Boolean Value)
|
|
Consider a Dataset containing a Species column with 150 values, and six in uppercase (Setosa).
The input data is shown in the figure below.
We create an expression shown below. According to the expression, we want to replace the word Setosa with Flora in the Species column. The Boolean value is True, which indicates that case sensitivity is ignored.
The result of the Expression node is displayed below. You can see that both types of values (setosa and Setosa ) are replaced with the new string Flora.
We remove the Flag since it is optional.
The result of the Expression node is displayed below. You can see that only the uppercase values (Setosa) are replaced with Flora. The lowercase value (setosa) remains unchanged.