Regular Expression To Validate Postal Codes In the Netherlands

Category: Strings

A regular expression to match and validate postal codes in the Netherlands.

/^[1-9]{1}[0-9]{3} ?[A-Z]{2}$/

Matches:

  • 1012 AB
  • 1012AB
  • 3068JH

Non-matches:

  • 1012
  • 101 2AB
  • 1012 12

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.