I am attempting to create a function of which manipulates postcodes, but as postcodes in the UK are all different sizes im struggling to work it out, im attempting to pass (for example “DN11AA”) this would then need to return the following, “dn|dn1-1|dn1-1aa”
Another example would be passing “B32B” – this would then return “b|b3-2|b3-2b”
Thank you for taking the time to read this 🙂
this should work.
edited, tested, works