I am using a form to get user details. In my name input I want only alphabetic characters, spaces and apostrophe. So I created the form input like
<input placeholder="FULL NAME" type="text" ng-model="customer.name" ng-pattern="/([a-zA-Z'\s])+/" ng-required="true">
However in my form if I give input hyphen or underscore characters it is still taking as a valid input. What I am doing wrong?