Created
July 17, 2017 13:07
-
-
Save kidwellj/58816430c77c8929699807c4338c2df0 to your computer and use it in GitHub Desktop.
OpenRefine regex for UK postcodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value.partition(/([A-IK-PR-UWYZ]?[A-H,K-Y][0-9]?[0-9A-HJKMNP-Y][ ][0-9][ABD-HJLNP-UW-Z][ABD-HJLNP-UW-Z])/)[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment