You are here: Re: [PHP] Regex for Amateur Radio Callsigns « PHP « IT news, forums, messages
Re: [PHP] Regex for Amateur Radio Callsigns

Posted by Stephen Calnan on 11/16/05 17:38

> > The only problem with this is that it would take "444" which is not a
> > valid call.

Wikipedia defines a HAM call sign here:
http://en.wikipedia.org/wiki/Call_sign#Amateur_radio

A regex based upon this definition might be:
/\b(([A-Z]{1,2})|([A-Z][0-9]))[0-9][A-Z]{1,3}\b/

I tested this out a tiny bit and it seems to work OK. Good luck.

 

Navigation:

[Reply to this 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

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