Hi folks, I’ve got a regex expression splitting UK postcodes so I can use just the first half of it in a zap and it works perfectly until someone enters a postcode without a space. The working regex is:
(?P<Incode>\w+)(?P<outcode>\s\w{1}\w{2})
So OL10 4TQ comes back with OL10 in the incode fine… but OL104TQ doesn’t match.
Can anyone help me work out a fix for this or propose a different solution? Thanks so much