Sorry, I might not have explained myself very well there. I have tried what you suggested.
All the post codes in Table 1 are of the form AB12 3CD.
However the post codes in Table 2 are of all forms A, AB, AB1, AB12, AB12 3, AB12 3C and AB12 3CD. So for example, in table 1, the Post Code WX89...