Various regular expressions for validating phone, email, post code, national insurance number etc.

These are all in C# hence then @ in front of the string, (This prevents processing of escape sequences and having to escape with \\ all the time)

// UK Post Code

AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$”;// UK Mobile Telephone Number

// UK Phone number

//Email Address
@”^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}” + @”\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\” + @”.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$”;

// Web URL

// UK Bank Number

// UK Bank SortCode

// Password

// Surname
@”^([a-zA-Z ‘-]+)$”;