Simple regex validator directive for AngularJS