ninValidator property
Matches national insurance numbers in the UK
Implementation
static final RegExp ninValidator =
RegExp(r"^\s*[a-zA-Z]{2}(?:\s*\d\s*){6}[a-zA-Z]?\s*$");
Matches national insurance numbers in the UK
static final RegExp ninValidator =
RegExp(r"^\s*[a-zA-Z]{2}(?:\s*\d\s*){6}[a-zA-Z]?\s*$");