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

Posted by Leif Gregory on 11/16/05 15:57

Hello Leonard,

Tuesday, November 15, 2005, 8:39:19 PM, you wrote:
> Here are how they look
> W1W
> W1AW
> WA1W
> AD4HZ
> N9URK
> WB6NOA
> 4N1UBG

Let's do it this way... What are the rules for a valid callsign?

i.e.
- If it's only three characters, it must start with a letter.
- All callsigns must have both alpha and numeric components.
- A callsign can not have to identical letters next to each other
- A callsign is always written in uppercase

etc.

If we know what the rules are that constitute a valid callsign, then
we can help you write a regexp.


--
TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B
__ ____ ____ ____ Geocaching: http://gps.PCWize.com
( ) ( ___)(_ _)( ___) TBUDP Wiki Site: http://www.PCWize.com/thebat/tbudp
)(__ )__) _)(_ )__) Roguemoticons & Smileys: http://PCWize.com/thebat
(____)(____)(____)(__) PHP Tutorials and snippets: http://www.DevTek.org

Do not disturb. Already disturbed!

 

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

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