RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Pattern Title
Expression
^[A-Za-z]{1,2}[0-9A-Za-z]{1,2}[ ]?[0-9]{0,1}[A-Za-z]{2}$
Description
This regular expression can be used to validate UK postcodes. Especially useful if want to provide a client side validation on a web site.
Matches
SW112LE | SW11 2LE | CR05LE
Non-Matches
12CR0LE | 12CR 0LE | SWLE05
Author Rating: The rating for this expression. Santosh Potadar
Title Test Details Pattern Title
Expression
^[A-Za-z]{2}[0-9]{6}[A-Za-z]{1}$
Description
UK National Insurance Number validation. Especially useful to validate through clientside/server side script on a website.
Matches
SP939393H | PX123456D | SW355667G
Non-Matches
12SP9393H | S3P93930D | 11223344SP00ddSS
Author Rating: Not yet rated. Santosh Potadar
   Displaying page 1 of 1 pages; Items 1 to 2

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials