Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following validation types are available in the Aquima Blueriq library:

Table of Contents
maxLevel2
minLevel2

...

This validation type checks whether a string value is part of a specified set of strings. You can use this type to validate a string as a correct postal code format, telephone number or email address.

Syntax

Code Block
<posRegExp><negRegExp>
  • posRegExp - The attribute value should satisfy this regular expression.
  • negRegExp - The attribute value should not satisfy this regular expression.

The following characters are allowed in these regular expressions:

Code Block
^[0-9]{4}\s{0,1}(?)[a-zA-Z]{2}$

The regular expressions used in several Aquima Blueriq Studio functions are common Java 1.4 expressions. For a complete documentation we refer to the online java documentation.

Examples

Postal code

Code Block
<^[0-9]{4}( ?)[a-zA-Z]{2}$>
ValueResult
“1000 AA”valid
“1000AA”valid
“10001AA”invalid

 

 

Telephone number

 

 

Code Block
<(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)>

 

 

ValueResult
“010 1234567”valid
“+31(0)10 1234567”valid
“010-1234567”valid
“010 123456789”invalid

 

 

E-mail address

Code Block
<^.+@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4})$><(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)>
ValueResult
“test@email.nl”valid
“test@email.failure”invalid

 

...