Regular Expressions 101

Community Patterns

Identity Number Format for Turkey

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[1-9]{1}[0-9]{9}[02468]{1}$
/
gm

Description

This format is just for precheck use. It will not validate completely. If you want for more validation you should call webservices.

Submitted by mbaysal - 3 years ago