Page History
Panel | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
NumberThis type checks the boundaries of an attribute with base type number, integer, currency or percentage. Syntax
Examples
| ||||||||||||||||||||||||||||||
Panel | ||||||||||||||||||||||||||||||
|
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 Blueriq Studio functions are common Java 1.4 expressions. For a complete documentation we refer to the online java documentation.
UI Text Box | ||
---|---|---|
| ||
When writing regular expressions, you should make sure that they do not make the system vulnerable to ReDos attacks. The system can give a denial of service when an evil expression is used, that takes very long to evaluate by the parser.
The above are suspectible to aaaaaaaaaaaaaaaaaaaaaaaa! It is difficult to give general rules that make sure that your expression is not evil, and even recognizing them can be hard. When writing regular expressions, consider Atomic Groups which help to avoid the evil behavior. |
Examples
Postal code
Code Block |
---|
<^[0-9]{4}( ?)[a-zA-Z]{2}$> |
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}$)> |
E-mail address
Code Block |
---|
<^.+@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4})$><(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)|\s> |
UI Text Box | ||
---|---|---|
| ||
For more examples, you can check this website: http://www.regexlib.com/ |
Back to top |
---|
bgColor | white |
---|
SofiNumberValidator
This type checks whether a social security number is valid. You can use this validation on attributes that have base type string.
Syntax
Code Block |
---|
<locale> |
locale - Specify the country code for which you want to validate the social security number, e.g. nl_NL for the Netherlands.
Examples
Assume you have added the validation type SofiNumberValidator with parameter <nl_NL> to the attribute Client.SocialSecurityNr, then
Client.SocialSecurityNr = “123456782” is valid;
Client.SocialSecurityNr = “123456789” is invalid.
Back to top |
---|
bgColor | white |
---|
StringLength
This type validates the length of a string value.
Syntax
Code Block |
---|
<minLength><maxLength> |
minLength - The length of the attribute value should be greater than or equal to this value.
maxLength - The length of the attribute value should be less than or equal to this value.
Examples
Back to top |
---|