From version 6.0.0.6, you can now apply a Conditional Update Value when the selected field 'matches the regex'. This means you can apply a Regular Expression (RegEx) to your Conditional Update Value setting.


Though we do not offer support on writing Regular Expressions, we think this new feature will be mainly used for applying a Conditional Update Value to a field setting when there are multiple values you want it to consider.


For Example, your data source may contain a field that has multiple values (in this case the values are 'Opt1', 'Opt2', 'Opt3', 'Opt4', 'Opt5'). You only want to add an Attribute to your RE if that field contain either 'Opt1' or 'Opt2' and subsequently, not add the Attribute when the field contains 'Opt3', 'Opt4' or 'Opt5'. To do this, you would apply the following settings:



The Regular Expression uses the values you want the Conditional Update Value to consider, with a | to separate them out. If you wanted to apply a Conditional Update Value with more than the two values I've shown, you would adjust your RegEx accordingly:


"I want to add the attribute if the other field contains the words 'Opt1', 'Opt2' or 'Opt5'" = Opt1|Opt2|Opt5 


or


"I want to add the attribute if the other field contains the words 'Opt1', 'Opt3' or 'Opt5'" = Opt1|Opt3|Opt5 


Another way of looking at it, with a real -life example, if your incoming fields contains different values such as Communication Preferences like 'Newsletter', 'Annual Report', 'Fundraising', 'Brochure', and you only wanted to apply an Attribute if the Field contained 'Newsletter' and 'Brochure', then your Regex would look like this 'Newsletter|Brochure'