Skip to content

Instantly share code, notes, and snippets.

@mortenscheel
Last active April 5, 2017 13:56
Show Gist options
  • Save mortenscheel/5c37514f6aeff512975797305170040e to your computer and use it in GitHub Desktop.
Save mortenscheel/5c37514f6aeff512975797305170040e to your computer and use it in GitHub Desktop.
Regex to extract components of Danish street addresses
/^([^0-9]*)([0-9]*)\s*([A-Z]?)[,\s]*([0-9]*)?(st|kl)?[\.,\s]*([a-zæøå]*)?(\d{0,4})?.*$/mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment