I have a input of type number, and I want to make sure it only accepts a number. I can do this fine on the Server side, but with AngularJS I can not get it to work.
Try defining your regex as a scope variable In the controller, it worked for me.