Hello community,
As time pases, I can see, that validations become more and more important in the data entry process. As you know XMLPortletFactory has a validation process based on regexp matches. (See
http://www.xmlportletfactory.org/wiki/-/wiki/Main/How+to+add+new+regexp+validations).
Actually there are a few validations defined, and I will like to add a "serious" set of validations, to include them in the next version, and enhance this functionalities.
Anybody interested in participate, please feel free to post your sugestions. I attach the actual set of regexp validations. If you dont know regexp, dont worry, just post your opinions.
Saludos, Jack.
1#
2# XMLPortletFactory regular expresion validation types
3#
4float_regexp=[-+]?[0-9]*\.?[0-9]+$
5integer_regexp=^[-+]?[0-9]+[0-9]*$
6email=^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$
7email_error=email_error
8ip=^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
9url=^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)( [a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$
10url_error=url_error
11zipspain=^([1-9]{2}|[0-9][1-9]|[1-9][0-9])[0-9]{3}$
12zipspain_error=zipspain_error
13nifspain=[0-9]{8}[A-Za-z]
14nifspain_error=nifspain_error
15phonespain=^[0-9]{2,3}-? ?[0-9]{6,7}$
16phonespain_error=phonespain_error
17zero_to_ten=^([0-9]|10)$
18zero_to_ten_error=zero_to_ten_error