Skip to content

Instantly share code, notes, and snippets.

@Patrizio
Created February 27, 2011 10:16
Show Gist options
  • Save Patrizio/846068 to your computer and use it in GitHub Desktop.
Save Patrizio/846068 to your computer and use it in GitHub Desktop.
Een validation voor een geldig Nederlandse postcode (1234 AB)
validates_format_of :postcode,
:with => /^(\d{4}).[a-z]{2}$/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment