Regular Expressions 101

Community Library

Community Library Entry

3

Regular ExpressionOpen Workspace

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

Description
Created·2021-03-20 22:05
Type·Match
Flavor·PCRE2 (PHP)

This regular expression is build from the description of NINO number of GOV.UK ,

Submitted by Iftakhar Husan
Open Workspace