ng-pattern validation in angularjs

The ng-pattern validation are use to validate the input fields with help of regular expressions. The regular expression can be number, email etc. If field is validated then return true otherwise return false.