-
Notifications
You must be signed in to change notification settings - Fork 2
Regex find and replace
ryannewington edited this page Jun 23, 2016
·
1 revision
This transform allows you to apply a regular expression find-and-replace operation to an incoming string value
Parameter | Description |
---|---|
Find pattern | Specifies the regular expression pattern used to match the string in the incoming value |
Replace pattern | Specifies the substitution pattern to insert into the string where values matched the find pattern |
The transform accepts string values as an input.
The transform accepts multiple input values, and processes each of them individually.
The transform returns a string value.
Input value | Find Pattern | Replace Pattern | Description | Output value |
---|---|---|---|---|
Lithnet ACMA | ([[^\s]]+).*$ |
$1 |
Finds the first word | Lithnet |
ABC123DEF | [[^a-zA-Z]] |
Remove non-alpha characters | ABCDEF | |
000123 | ^0+ |
Remove leading zeros | 123 |