Skip to content

Instantly share code, notes, and snippets.

View jmsfwk's full-sized avatar

James Fenwick jmsfwk

View GitHub Profile
@jmsfwk
jmsfwk / Appendix 3.md
Last active March 13, 2020 11:51
Extract from "Bulk Data Transfer - additional validation valid from 12 November 2015"

BULK DATA TRANSFER: ADDITIONAL VALIDATION FOR CAS UPLOAD

3. UK Postcode Regular Expression

The following is the UK Postcode Regular Expression and the corresponding detail explaining the logic behind the UK Postcode Regular Expression.

3.1 Expression

^([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) [0-9][A-Za-z]{2})$
FROM php:8.4-fpm
RUN pecl install xdebug && docker-php-ext-enable xdebug