Regular Expressions 101

Community Patterns

0

mr regexp

ECMAScript (JavaScript)
Рег
Submitted by anonymous - a year ago
0

BIOS

PCRE2 (PHP >=7.3)
/
Submitted by Pang Chin Pok - a year ago

身份证号, 支持1/2代(15位/18位数字)

1

Regular Expression
ECMAScript (JavaScript)

/
(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0\d|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)
/

Description

Loading markdown...
Submitted by anonymous - 4 years ago