The validation code syntax is recursively defined as:
<validation code> -> { [NOT](<validation code>) | <validation code> { AND | OR} <validation code> | <literal> { > | < | = | >= | <= | LIKE } <literal> }
<literal> -> { value | <numeric literal> | '<string literal>' } |
Examples:
(value < 25 OR value > 35) AND NOT(value <= 0) (matches all values less than 25 or greater than 35 but not values less than or equal to 0)value LIKE 'www.%.com' OR value LIKE 'www.%.net' (matches all values that start with www. and end with .com or start with www. and end with .net, i.e. .com and .net websites)value = 'John''s email address' (matches the value John's email address)-11 < value AND value < 25.5 (matches all values between -11 and 25.5)