Account detail validation using ng-pattern
. app.controller('myController', ['$scope', function ($scope) { $scope.cardRegEx = /^[0-9]{16,16}$/; $scope.cvvRegEx = /^[0-9]{3,3}$/; }]); See the code ATM Card Number (16 digits):Invalid Card Number.
CVV (3 digits):Invalid CVV.