On 10/03/2017 11:04 PM, Alex, VE3NEA wrote: Hi Alex & all,
Usually, when I have to test the validity of a callsign, I use the perl regular expression: ^((([A-PR-Z]+[0-9]*[A-Z]?)|([1-9][A-Z]+[0-9]*))\/)?(([A-PR-Z]+[0-9]+[A-Z]+)|([1-9][A-Z]+[0-9]+[A-Z]+))(\/([PMA0-9]|MM|(([A-Z]+[0-9]*[A-Z]?)|([1-9][A-Z]+[0-9]*))))?$ This is not a perfect solution and the result is not absolutely reliable, but it's right in most cases. I have to use it with care. Finally, it's a simple test which can be helpful in many situations. Best wishes, Claude (DJ0OT) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
