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".

Offline Support

This activity works when the device is offline.

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.

Version Information

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

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.11