Indian Postal/Pin/Zip Code Regular Expression

Category: Numbers

A regular expression to match Postal/Pin/Zip codes in India, which consists of a 6-digit number with or without spaces.

/^\d{3}\s?\d{3}$/

Matches

  • 300500
  • 300 500

Non-matches:

  • 12345
  • 12 345
  • abcdef
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.