validating bean class properties using hibernate-validator api and regular expressions. In the above example I have used Spring-MVC and Hibernate-Validate to impose validations like-
- Name - Name should not be blank, should not contain any special character, Mandatory
- Mobile No - Lenght should be not more than 10, not blank, First Digit should be 7/8/9
- Email - mandatory, should contain '@' symbol
- DOB - input dob in dd-MM-yyyy format. After submitting form result page should dispaly name, mobile no, email id, age(it'll calculate age till date).