Regular Expression Replace Activity

Description

Replaces all occurrences of a regular expression pattern with another text value.

This activity creates a new text value; it does not modify the original value.

Usage

Use this activity to perform advanced text replacement operations that require pattern matching to find the text to replace. For example, you could replace: all numeric digits, email addresses, phone numbers, or all words starting with the letter "t".

Inputs

Text

Required

Type: String

The text that is the target of the replacement.

Pattern

Required

Type: String

The regular expression pattern to match.

Replacement

Required

Type: String

The replacement text.

Ignore Case

Optional

Type: Boolean

Whether the search is case insensitive.

Multiline

Optional

Type: Boolean

Whether ^ and $ should match the start and end of each line.

Outputs

result

Type: String

The modified text.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity works when the device has intermittent connectivity to the network.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, ArcGIS Web AppBuilder 2.4.