标签: angularjs ng-pattern
我希望ng-pattern值基于如下条件而改变:
<input class="form-control" type="text" ng-model="emialid" ng-pattern="<codition> ? <regex1> : <regex2>" name="email" required></input>