Match RegEx Condition

This is especially useful when you have a media standard in place and all files follow naming rule conventions e.g. every file is named with product-code_project-name_department_date. 

Triggers if the Regular Expression is true.

Specific Definitions

Select the condition.

Property

Value

kind

MatchRegexCondition

fieldpath

layerId.fieldId

Details on accessing field values, specifically fieldpath starts lowercase

Supports JSON path syntax which you can test here: https://jsonpath.com.

regex

Provide the regular expression that should be applied to the value in the provided fieldpath. 

See Regular Expression for further info. 

storeIn

Define an optional variable where the regex output should be stored, to use in the following transformations and actions. 

Provide any name you like, avoid numbers at the beginning. 

You can leave this field empty. If you don't define it the output value will just be passed to the next transformation. 

Check Filename of Images for Regex

Get Product Code and Store in "parsed_filename" variable

{ "kind": "MatchRegexCondition", "fieldPath": "imageMetadata.fileName", "regex": "(?<productCode>^(F-|G-|V-)[^_]*?)_()", "storeIn": "parsed_filename" }

 

FotoWare Switzerland AG - CH-5033 Buchs - Switzerland
https://picturepark.com - support@picturepark.com
© 2024 Fotoware Switzerland AG