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 1
Title Test Details Pattern Title
Expression
(^(((GIR)\s{0,1}((0AA))))|(([A-PR-UWYZ][0-9][0-9]?)|([A-PR-UWYZ][A-HK-Y][0-9][0-9]?)|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s{0,1}([0-9][ABD-HJLNP-UW-Z]{2})$)
Description
United Kingdom Postcode expression, modified for use with Microsoft.Net regular expression validations. ( see http://www.govtalk.gov.uk/gdsc/html/frames/PostCode.htm and http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd )
Matches
GIR 0AA | EC4N 4SA | S25 2XT
Non-Matches
GIR 0AB | QC4C 4SV | Q25 2XT
Author Rating: Not yet rated. Paul Stinton
   Displaying page 1 of 1 pages; Items 1 to 1

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