Reply to Re: Need world zip codes

Your name:

Reply:


Posted by Dylan Parry on 11/29/06 15:47

nemo@nemo_spam.com wrote:

>> /^[A-Z]{1,2}[1-9][0-9]? [0-9][A-Z]{2}$/
>>
> I think that would fall foul of, say, Central London postcodes - many
> years ago, I lived at London WC1B 4BB

Thanks! I did say it was untested :) Anyway, a quick fix would produce:

/^[A-Z]{1,2}[1-9][0-9A-Z]? [0-9][A-Z]{2}$/

Which would then allow a letter /or/ a number as the last character in
the first half of the postcode, but only if it's following a digit. That
should work now, I think.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация