Regular Expressions 101

Community Patterns

2

object

PCRE2 (PHP >=7.3)
Json Object
Submitted by anonymous - 3 years ago

National Insurance Number regular expression

3

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?!BG|GB|KN|NK|NT|TN|ZZ)[^DFIQUV][^DFIQUVo][0-9]{6}[ABCD]$
/
img

Description

Loading markdown...
Submitted by Iftakhar Husan - 3 years ago