validate_postcode
Check a UK postcode is well-formed and split it into outward and inward codes, returning the canonical spaced form. Deterministic format check only.
Instructions
USE THIS to check a UK postcode is well-formed and to split it into its outward and inward codes before storing or matching it — instead of trusting raw input. Deterministic format check only (no lookup); returns the canonical spaced form, outcode and incode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postcode | Yes | The UK postcode to validate. |