With this package, one can easily validate various data. It includes numbers, email, string, date, URI and posibility valid multiple data with a single method call.
Some of above mentioned features have corresponding RFCs, in case, Validate conforms to those RFCs. For example email validation mostly covers RFC 822 or URI conforms to RFC 2396.
Example 66-1. Validating an email address
|
Example 66-2. Validating dates In this example, date would first checked against desired format, and then get checked to see if it's not before "15 February 1986" or after "23 August 2008".
|