Data Validation class
The key to a stable and secure application or website is data validation. Validating things like email addresses, numbers, and other data can be very time consuming and add a lot of extra lines of code to your website if you want to do it the right way. This class can make the data validation part of website development a lot easier.
This class is very easy to use. Because all the methods are static they are faster and callable without instantiating the class. This means that you only need to include the class file in your code and you can start validating data.
This class can be used in flash and flex applications.
Easy to use
Because the all the validation methods are static it’s very easy to use this class
Email validation
Validator.Email("www.test.com");
Email validation but don’t allow .be and .nl domains
Validator.Url("www.test.com", [".be", ".nl"]);
Input must be numeric and be bigger than 18 and smaller than 40
Validator.Number(textinput.text, 40, 18);
Features
- Url
- IP
- Phone numbers
- Number (optitional use of min and/or max)
- Unsigned number
- Alpha
- Alpha numeric
- String length
- Hexcolor
- Date



8comments