Here is a regular expression for the UK National Insurance Number accepting values such as AB123456C etc
^[A-CEGHJ-PR-TW-Z]{1}[A-CEGHJ-NPR-TW-Z]{1}\s?[0-9]{2}\s?[0-9]{2}\s?[0-9]{2}\s?[A-DFM]{0,1}$
Subscribe to:
Post Comments (Atom)
Basic collection of code snippets and useful stuff I either find out or find from the web.
No comments:
Post a Comment