Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
National Insurance Number regular expression
Open Workspace
PCRE2 (PHP)
Match
Created 2021-03-20 22:05
3
Regular Expression
/
^
(?!
BG
|
GB
|
KN
|
NK
|
NT
|
TN
|
ZZ
)
[^
DFIQUV
]
[^
DFIQUVo
]
[
0
-
9
]
{6}
[
ABCD
]
$
/
img
Description
This regular expression is build from the description of NINO number of
GOV.UK
,
Submitted by
Iftakhar Husan