A regular expression to match and validate postal codes in Iran.
/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/
Matches:
- 1193653471
Non-matches:
- 0393653471
A regular expression to match and validate postal codes in Iran.
/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/