PropertyMatchesValve

Valve for checking if a property matches a specific regex.

If one or more values in the property matches the regex, the destination property is set to "true", otherwise "false".

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 name of the property. Yes Yes
dest The name of the property to set/update with the result of the operation. Yes Yes
regex The regular expression. Yes Yes

Example Configuration

{
    "name": "PropertyMatchesValve",
    "config": { 
        "source":"description",
        "dest":"match_prop",
        "regex":"[^0-9]*[12]?[0-9]{1,2}[^0-9]*"
    }
}

Requirements

item set must have at least one entry.