Skip to content

Instantly share code, notes, and snippets.

@kidwellj
Created July 17, 2017 13:07
Show Gist options
  • Save kidwellj/58816430c77c8929699807c4338c2df0 to your computer and use it in GitHub Desktop.
Save kidwellj/58816430c77c8929699807c4338c2df0 to your computer and use it in GitHub Desktop.
OpenRefine regex for UK postcodes
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