Questions tagged [ng-pattern]

HTML input element control with angular data-binding. Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.

HTML input element control with angular data-binding. Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.

Source: http://docs.angularjs.org/api/ng/directive/input

170 questions
-1
votes
1 answer

AngularJS - regular expression which should not start & end with space and should not consist double quotation (")

I have written ng-pattern for not to start and end with space. And trying to match double quotation in $watch. But it is not working. ng-pattern is also not working my ng-pattern is:
PiyaModi
  • 213
  • 2
  • 9
  • 22
-1
votes
1 answer

ng-pattern not matching the correct regex

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
Muhammad Raihan Muhaimin
  • 5,559
  • 7
  • 47
  • 68
-2
votes
2 answers

AngularJS show email field error on submit?

I have a form in Angular JS 1.5.11. I have it set up to show an error message for empty required fields on form submit. I need to add the ability to also detect if an email is valid on submit. So far, I can't get this to work. I tried using the…
Steve
  • 14,401
  • 35
  • 125
  • 230
-2
votes
4 answers

Angular ng-pattern regex not working

I'm trying to create a validation for an angular input field which accepts only the a-zA-Z0-9 characters and special characters ".”(full stop), "_" (underscore), "@"(at sign) I can't seem to get the hang of it. I tried:…
monda
  • 3,809
  • 15
  • 60
  • 84
-2
votes
1 answer

Angular pattern works on plunker, but not locally

Can someone explain this to me !!!, it's the same code but in plunker works, but locally not. In ng-pattern or pattern html5 , Why?????? The first Image is my local server and I put "011.11". This is an error for me, because I need two digits before…
pokaxperia
  • 87
  • 2
  • 9
1 2 3
11
12