I m using ng-pattern inside a textarea element. Inside my controller I have pattern defined like this:
ng-pattern
textarea
vm.pattern = new RegExp(\'^(?