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 Ordnance Survey Grid Reference
Expression
^((([sS]|[nN])[a-hA-Hj-zJ-Z])|(([tT]|[oO])[abfglmqrvwABFGLMQRVW])|([hH][l-zL-Z])|([jJ][lmqrvwLMQRVW]))([0-9]{2})?([0-9]{2})?([0-9]{2})?([0-9]{2})?([0-9]{2})?$
Description
Matches standard 0- to 10-figure (non-tetrad) Ordnance Survey of Great Britain (OSGB) Grid References
Matches
SH | OF1234567890 | NP1234
Non-Matches
SH123 | SH12D | NI1234 | 1234
Author Rating: Not yet rated. Tim May
Title Test Details Ordnance Survey Grid Reference (with Tetrads)
Expression
((([sS]|[nN])[a-hA-Hj-zJ-Z])|(([tT]|[oO])[abfglmqrvwABFGLMQRVW])|([hH][l-zL-Z])|([jJ][lmqrvwLMQRVW]))([0-9]{2})?(([a-np-zA-NP-Z]{1}?|([0-9]{2})?([0-9]{2})?([0-9]{2})?([0-9]{2})?))
Description
Matches standard 0- to 10-figure (including 2km tetrad references) Ordnance Survey of Great Britain (OSGB) Grid References
Matches
SH | OF1234567890 | NP1234 | SO34L
Non-Matches
SH123 | SH12O | NI1234 | 1234
Author Rating: Not yet rated. Tim May
   Displaying page 1 of 1 pages; Items 1 to 2

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