Regex MatchCriteria

 

Value is null or empty

<criteria name="Test_Input" type="attribute" value="^$"/>

 

Value does not equal "Yes"

<criteria name="Test_Input" type="attribute" value="^(?!Yes$)"/>

 

Value is not null or empty

 <criteria name="Test_Input" type="attribute" value="^(?!\s*$).+"/>

Could this solve it?
<criteria name="Test_Input" type="attribute" value=".+"/>

 

Value does not start with "abc"

 <criteria name="Test_Input" type="attribute" value="^(?!abc).+" />

 

Value is not equal to "specific string", with first character of each word matching either capital or lower case

 <criteria name="Studio Task Type" type="attribute" value="^((?![Ss]pecific?\s?[Ss]tring).)*$"/>

 

Value is equal to one of the following strings: "this", "That" or "the other Thing".  Note, the pipe '|' character is an 'OR' operator and this match is both case and space sensitive.

 <criteria name="Test_Input" type="attribute" value="(this|That|the other Thing)"/>

 

File type is equal to one of the following strings: "jpg", "png", "tif" or "psd"

 <criteria name="Test_Input" type="attribute" value="(jpg|png|tif|psd)"/>

 

File extension is equal to one of the following strings: "jpg", "jpeg", "png", "tif", "tiff" or "psd".  Note, this is essentially just a less efficient method of matching the same files in previous example.

 <criteria name="fileName" type="attribute" value="(.*?)\.(jpg|jpeg|png|tif|tiff|psd)$"/>
Was this article helpful?
0 out of 0 found this helpful