
Function to check if a string is a valid postcode regardless of its formatting.
Source:R/checker-functions.R
is_postcode.Rd
With or without one space is permitted. Does not work with data where two spaces are included with 6 character postcodes. From the MIT licenced package Rbduk https://github.com/sama-ds/Rbduk/blob/main/R/is_postcode.R