is_uk_postcode returns TRUE if the input string
contains a valid UK postcode. The {assert_*} function returns nothing but
throws an error when the is_* function returns FALSE.
References
Regexes taken from
https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Validation.