Page History
...
The following validation types are available in the Aquima Blueriq library:
Table of Contents | ||||
---|---|---|---|---|
|
...
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}$> |
Value | Result |
---|---|
“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}$)> |
Value | Result |
---|---|
“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})$><(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)> |
Value | Result |
---|---|
“test@email.nl” | valid |
“test@email.failure” | invalid |
...
Overview
Content Tools