After some updates in my project a input pattern doesn't work anymore. Looks like after update to Ionic 2.1.18 input pattern seems to be broken: This part worked for me before but now Password.valid is always false:
<ion-item>
<ion-label floating>Password*</ion-label>
<ion-input type="password" required [(ngModel)]="regModel.Password" name="Password"
#Password="ngModel" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d*\w]{5,}$"
(change)="checkPassword()"></ion-input>
</ion-item>
<ion-item no-border no-lines no-margin *ngIf="!Password.valid && Password.dirty" color="danger">
<small>Five characters minimum,</small>
<br>
<small> at least 1 uppercase, 1 lowercase and 1 number {{Password.valid}} {{Password.dirty}}
</small>
</ion-item>
Update
Funny thing, some of simple regular expressions work fine, but another - don't, e.g. [a-zA-Z ]* - works fine, \d{5} - don't
[pattern]stackoverflow.com/questions/34992630/…