Re: Regex for Amateur Radio Callsigns

From: Date: Wed, 16 Nov 2005 15:38:38 +0000
Subject: Re: Regex for Amateur Radio Callsigns
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-225919@lists.php.net to get a copy of this message
> > 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.

« previous php.general (#225919) next »