Skip to content

G-Corporation/regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 

Repository files navigation

REGEX

IranPostalCode

Structure regex

Versoin 1
^\d{0,5}[ -]?\d{0,5}$ 

Checkout and Example (Versoin 1)

Versoin 2
^\d{5}[ -]?\d{5}$

Checkout and Example (Versoin 2)

Structure & Content regex

^(?!(\d)\1{3})[13-9]{4}[1346-9][ -]?[013-9]{5}$|^$

Checkout and Example

FirstnameAndLastname

Witout Persian Word

^[A-z]{2,}( [A-z]{2,})+([A-z]|[ ]?)$

Checkout and Example

With Persian Word

^[آ-یA-z]{2,}( [آ-یA-z]{2,})+([آ-یA-z]|[ ]?)$

Checkout and Example

IranMobileNumber

^[0]?[9][0-9]{9}$

Checkout and Example

Email

^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$

Checkout and Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages