ninValidator property

RegExp ninValidator
final

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*$");