Regular Expressions 101

Library entries

National Insurance Number regular expression

Vote

3

Regular Expression
pcre2

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

Description

Loading markdown...
Submitted by Iftakhar Husan - 7 months ago