[Gllug] OT: Police Web Site

general_email at technicalbloke.com general_email at technicalbloke.com
Thu Feb 3 08:32:52 UTC 2011


On 03/02/11 07:58, Alain Williams wrote:
> On Thu, Feb 03, 2011 at 04:55:10AM +0000, general_email at technicalbloke.com wrote:
>
>> Oops, actually that should have been: ^(GIR
>> 0AA)|(((A[BL]|B[ABDHLNRSTX]?|C[ABFHMORTVW]|D[ADEGHLNTY]|E[HNX]?|F[KY]|G[LUY]?|H[ADGPRSUX]|I[GMPV]|JE|K[ATWY]|L[ADELNSU]?|M[EKL]?|N[EGNPRW]?|O[LX]|P[AEHLOR]|R[GHM]|S[AEGKLMNOPRSTY]?|T[ADFNQRSW]|UB|W[ADFNRSV]|YO|ZE)[1-9]?[0-9]|((E|N|NW|SE|SW|W)1|EC[1-4]|WC[12])[A-HJKMNPR-Y]|(SW|W)([2-9]|[1-9][0-9])|EC[1-9][0-9])
>> ?[0-9][ABD-HJLNP-UW-Z]{2})$
> Can I steal that RE - ie use in my own stuff please ?
>
>> Assuming you want to allow for omission of the space in the entered
>> postcode - an even more common validation annoyance!
> +1
>


Well I found it on Wikipedia's postcode entry so I assume if it's
anything it's CC BY-SA. If that's the case I am of course happy to
release my addition of a single question mark under the same license :)
Having said that I'm not sure it's even possible to copyright or patent
a regex, nor should it be as far as I can see.

Cheers,

Roger.
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list