I have tried multiple reg ex expressions on my ng-pattern
in angular js, I have test this pattern on an online regex tester and it works fine
/^([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) ?[0-9][A-Za-z]{2})$/i
I only want the postcode to contain uppercase characters and the postcode requires a space.
But when I use it inside my app, it allows for lowercase and a space. Which I do not want. Any ideas guys.