PropertyReplaceRegexValve

Replace tokens matching regex in string property.

Note: This Valve operates on regular item properties (string) and does NOT support binary item properties.

Valve operates on the Current Item Set and will process all items surviving the common item filtering rules.

Properties

Name Description Default value Mandatory Supports property expansion
source The source property. Yes Yes
dest The destination property. If not specified the resulting value will be put in source (i.e source will be replaced). No Yes
regex The regex. Yes No
replacement The replacement value, (empty string is a legal value). Yes No

Example Configuration

{
    "name": "PropertyReplaceRegexValve",
    "config": { 
        "source":"mail",
        "dest": "updatedmail",
        "regex":"\(at\)",
        "replacement":"@"
    }
}

Requirements

item set must have at least one entry.