I have searched the forum for posts on the subject of UK postal code validation and found the reg expression that seems to be recommended for this.
I tried the expression but it will not accept this postal code? TS183AM
I tried the expression but it will not accept this postal code? TS183AM
Code:
Like "(?:(?:A[BL]|B[ABDHLNRST]?|" & "C[ABFHMORTVW]|D[ADEGHLNTY]|E[CHNX]?|F[KY]|G[LUY]?|" & "H[ADGPRSUX]|I[GMPV]|JE|K[ATWY]|L[ADELNSU]?|M[EKL]?|" & "N[EGNPRW]?|O[LX]|P[AEHLOR]|R[GHM]|S[AEGKLMNOPRSTWY]?|" & "T[ADFNQRSW]|UB|W[ACDFNRSV]?|YO|ZE)" & "\d(?:\d|[A-Z])? \d[A-Z]{2})"